]> jfr.im git - irc/gameservirc.git/blame - gameserv-2.0/libgameservgldl/src/DataLayer/MySQL/MySQLDAOFactory.cpp
Moved all SSQLS macros into their corresponding .cpp files so including the header...
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / src / DataLayer / MySQL / MySQLDAOFactory.cpp
CommitLineData
24f452e8 1#include <GameServ/DataLayer/MySQL/MySQLDAOFactory.h>\r
2#include <GameServ/DataLayer/MySQL/MySQLPlayerDAO.h>\r
3#include <GameServ/DataLayer/MySQL/MySQLItemDAO.h>\r
4#include <GameServ/DataLayer/MySQL/MySQLMonsterDAO.h>\r
5#include <GameServ/DataLayer/MySQL/MySQLMasterDAO.h>\r
6#include <GameServ/DataLayer/MySQL/MySQLLevelDAO.h>\r
7\r
8using GameServ::DataLayer::MySQL::MySQLDAOFactory;\r
b84b8e7a 9using GameServ::DataLayer::MySQL::MySQLPlayerDAO;\r
24f452e8 10using GameServ::DataLayer::MySQL::MySQLItemDAO;\r
b84b8e7a 11using GameServ::DataLayer::MySQL::MySQLMonsterDAO;\r
12using GameServ::DataLayer::MySQL::MySQLMasterDAO;\r
13using GameServ::DataLayer::MySQL::MySQLLevelDAO;\r
24f452e8 14\r
15#include <boost/smart_ptr/shared_ptr.hpp>\r
16using boost::shared_ptr;\r
17\r
18MySQLDAOFactory::MySQLDAOFactory(void)\r
19{\r
20}\r
21\r
22MySQLDAOFactory::~MySQLDAOFactory(void)\r
23{\r
24}\r
25\r
26shared_ptr<IPlayerDAO> MySQLDAOFactory::GetPlayerDAO(void) const\r
27{\r
b84b8e7a 28 return shared_ptr<IPlayerDAO>(new MySQLPlayerDAO());\r
24f452e8 29}\r
30\r
31shared_ptr<IItemDAO> MySQLDAOFactory::GetItemDAO(void) const\r
32{\r
33 return shared_ptr<IItemDAO>(new MySQLItemDAO());\r
34}\r
35\r
36shared_ptr<IMonsterDAO> MySQLDAOFactory::GetMonsterDAO(void) const\r
37{\r
38 //return shared_ptr<IMonsterDAO>(new MySQLMonsterDAO());\r
39 throw GameServException("Not implemented", __FILE__, __LINE__);\r
40}\r
41\r
42shared_ptr<IMasterDAO> MySQLDAOFactory::GetMasterDAO(void) const\r
43{\r
44// return shared_ptr<IMasterDAO>(new MySQLMasterDAO());\r
45 throw GameServException("Not implemented", __FILE__, __LINE__);\r
46}\r
47\r
48shared_ptr<ILevelDAO> MySQLDAOFactory::GetLevelDAO(void) const\r
49{\r
50// return shared_ptr<ILevelDAO>(new MySQLLevelDAO());\r
51 throw GameServException("Not implemented", __FILE__, __LINE__);\r
52}\r
53\r