GameServer
AnpanPopDataMaster.h
[詳解]
1 #ifndef __ANPANPOPDATAMASTER_H__
2 #define __ANPANPOPDATAMASTER_H__
3 
4 #include <map>
5 #include <vector>
6 
7 class MySqlConnection;
8 
10 {
11 
12 public:
13 
14 
15 
19 
20 
21 };
22 
23 bool operator <(const AnpanPopDataItem &A, const AnpanPopDataItem &B);
24 bool operator >(const AnpanPopDataItem &A, const AnpanPopDataItem &B);
25 
27 {
28 
29 private:
30 
31  typedef std::map<u32, AnpanPopDataItem> ItemMap;
32  typedef std::map<int, ItemMap> SheetMap;
33 
34 public:
35 
36  bool Load(const MySqlConnection &Connection);
37 
38  std::vector<const AnpanPopDataItem *> CollectItems(u32 Key, s32 SheetIndex = 0) const;
39 
40  std::vector<AnpanPopDataItem> GetAllSheetItem(s32 SheetIndex) const;
41 
42  std::vector<AnpanPopDataItem> GetAll() const;
43 
44 private:
45 
46  SheetMap Items;
47 
48 };
49 
50 #endif // #ifndef __ANPANPOPDATAMASTER_H__
bool operator<(const AnpanPopDataItem &A, const AnpanPopDataItem &B)
Definition: AnpanPopDataMaster.cpp:79
u32 Id
Definition: AnpanPopDataMaster.h:17
std::vector< AnpanPopDataItem > GetAllSheetItem(s32 SheetIndex) const
Definition: AnpanPopDataMaster.cpp:48
Definition: AnpanPopDataMaster.h:9
bool operator>(const AnpanPopDataItem &A, const AnpanPopDataItem &B)
Definition: AnpanPopDataMaster.cpp:84
s32 AutoKey
Definition: AnpanPopDataMaster.h:16
std::vector< AnpanPopDataItem > GetAll() const
Definition: AnpanPopDataMaster.cpp:64
bool Load(const MySqlConnection &Connection)
Definition: AnpanPopDataMaster.cpp:5
Definition: AnpanPopDataMaster.h:26
Definition: MySqlConnection.h:15
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
std::vector< const AnpanPopDataItem * > CollectItems(u32 Key, s32 SheetIndex=0) const
Definition: AnpanPopDataMaster.cpp:32
u32 AnpanId
Definition: AnpanPopDataMaster.h:18