]>
Commit | Line | Data |
---|---|---|
1 | #ifndef __GS__PLAYERGL_H__\r | |
2 | #define __GS__PLAYERGL_H__\r | |
3 | \r | |
4 | #include <GameServ/DataLayer/IPlayerDAO.h>\r | |
5 | using GameServ::DataLayer::DataAccessObjects::IPlayerDAO;\r | |
6 | \r | |
7 | #include <boost/smart_ptr/shared_ptr.hpp>\r | |
8 | using boost::shared_ptr;\r | |
9 | \r | |
10 | #include <list>\r | |
11 | using std::list;\r | |
12 | #include <string>\r | |
13 | using std::string;\r | |
14 | namespace GameServ { namespace GameLayer {\r | |
15 | \r | |
16 | class PlayerGL\r | |
17 | {\r | |
18 | public:\r | |
19 | PlayerGL();\r | |
20 | ~PlayerGL();\r | |
21 | \r | |
22 | shared_ptr<PlayerGO> GetById(const string &Id);\r | |
23 | void Insert(shared_ptr<PlayerGO> spPlayer);\r | |
24 | \r | |
25 | private:\r | |
26 | void Initialize();\r | |
27 | shared_ptr<IPlayerDAO> mspPlayerDAO;\r | |
28 | };\r | |
29 | \r | |
30 | }}\r | |
31 | \r | |
32 | #endif |