Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
KDataManage.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- #ifndef KDATAMANAGER_H
- #define KDATAMANAGER_H
- #include "SynDataSets.h"
- #include "Kengine.h"
- #include "KThread.h"
- #include "KNode.h"
- #include "KList.h"
- class TSynData:public KNode
- {
- public:
- long Id;
- long index;
- };
- #define MAXNUM 100
- //客户端 调用,锁定、反锁;取值、赋值
- class KDataManage
- {
- public:
- KDataManage();
- virtual ~KDataManage();
- SynDataSets_ptr m_pCorbaDataSets;
- KList m_LockList;
- KThread *m_pLockThread;
- long Lock(CORBA::Long MapId, CORBA::Long StyleId, long id);
- long UnLock(CORBA::Long MapId, CORBA::Long StyleId, long id, long index);
- CORBA::Any* GetData(CORBA::Long MapId, CORBA::Long StyleId, long id);
- long SetData(CORBA::Long MapId, CORBA::Long StyleId,long id, const CORBA::Any& data) ;
- //获得数据,并锁住数据
- CORBA::Any* GetDataWithLock(CORBA::Long MapId, CORBA::Long StyleId,long id) ;
- CORBA::Long SetDataWithLock(CORBA::Long MapId, CORBA::Long StyleId,CORBA::Long id, const CORBA::Any& data) ;
- CORBA::Any* GetDataWithOnce(CORBA::Long MapId, CORBA::Long StyleId,CORBA::Long id);
- CORBA::Long SetDataWithOnce(CORBA::Long MapId, CORBA::Long StyleId,CORBA::Long id, const CORBA::Any& data) ;
- char m_ServerObjName[30];
- void GetReqInfo(){};
- };
- #endif // KDATAMANAGER_H