Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef FAMILY_H
- #define FAMILY_H
- #include "Types.h"
- #include <string>
- #include <boost/tr1/unordered_map.hpp>
- #include <boost/utility.hpp>
- using std::string;
- using std::tr1::unordered_map;
- struct Family {
- Family(int32_t id, string name, string leader, string senior1, string senior2, string junior1, string junior2, string grandchild1, string grandchild2, string grandchild3, string grandchild4) : id(id),
- name(name),
- leader(leader),
- senior1(senior1),
- senior2(senior2),
- junior1(junior1),
- junior2(junior2),
- grandchild1(grandchild1),
- grandchild2(grandchild2),
- grandchild3(grandchild3),
- grandchild4(grandchild4) { };
- int32_t id;
- string name;
- string leader;
- string senior1;
- string senior2;
- string junior1;
- string junior2;
- string grandchild1;
- string grandchild2;
- string grandchild3;
- string grandchild4;
- };
- class Families : boost::noncopyable {
- public:
- static Family * Instance() {
- if (singleton == 0)
- singleton new Family;
- return singleton;
- }
- ;
- #endif
Add Comment
Please, Sign In to add comment