Guest User

Untitled

a guest
Jun 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. #ifndef FAMILY_H
  2. #define FAMILY_H
  3.  
  4. #include "Types.h"
  5. #include <string>
  6. #include <boost/tr1/unordered_map.hpp>
  7. #include <boost/utility.hpp>
  8.  
  9. using std::string;
  10. using std::tr1::unordered_map;
  11.  
  12. struct Family {
  13. 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),
  14. name(name),
  15. leader(leader),
  16. senior1(senior1),
  17. senior2(senior2),
  18. junior1(junior1),
  19. junior2(junior2),
  20. grandchild1(grandchild1),
  21. grandchild2(grandchild2),
  22. grandchild3(grandchild3),
  23. grandchild4(grandchild4) { };
  24.  
  25. int32_t id;
  26. string name;
  27. string leader;
  28. string senior1;
  29. string senior2;
  30. string junior1;
  31. string junior2;
  32. string grandchild1;
  33. string grandchild2;
  34. string grandchild3;
  35. string grandchild4;
  36. };
  37.  
  38. class Families : boost::noncopyable {
  39. public:
  40. static Family * Instance() {
  41. if (singleton == 0)
  42. singleton new Family;
  43. return singleton;
  44. }
  45. ;
  46. #endif
Add Comment
Please, Sign In to add comment