VR-Forces 4.1 Class Documentation
DtCigiSettingsRecord.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtCigiSettingsRecord.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
12 
15 
16 namespace makArchives
17 {
19  {
23  };
24 
28  {
29  public:
32 
35 
38 
40  DtCigiSettingsRecord& operator=(const DtCigiSettingsRecord& orig);
41 
42  void setEntityTypeMapRecord(const DtCigiEntityTypeMapRecord& record);
43 
44  DtCigiEntityTypeMapRecord& entityTypeMapRecord();
45  const DtCigiEntityTypeMapRecord& entityTypeMapRecord() const;
46 
47  void setComponentMapping(DtCigiComponentClass compClass, int compId, const std::string& str);
48  const std::string& findComponentMapping(DtCigiComponentClass compClass, int compId) const;
49  void removeComponentMapping(DtCigiComponentClass compClass, int compId);
50 
51  const std::map<int, std::string>& componentMap(DtCigiComponentClass compClass) const;
52 
53  void setModelStateMapRecord(const DtCigiComponentMapRecord& record);
54  DtCigiComponentMapRecord& modelStateMapRecord();
55  const DtCigiComponentMapRecord& modelStateMapRecord() const;
56 
57  const std::map<int, std::string>& databaseMap() const;
58 
59  void setDatabaseMapping(int databaseNumber, const std::string& filename);
60  const std::string& findDatabaseFilename(int databaseNumber) const;
61  void removeDatabaseMapping(int databaseNumber);
62 
63  void setAnimationMapping(int animationId, const std::string& animationName);
64  const std::string& findAnimationName(int animationId) const;
65  void removeAnimationMapping(int animationId);
66  const std::map<int, std::string>& animationMap() const;
67 
68  protected:
69  void removeComponentMapping(std::map<int, std::string>& mapping,
70  int compId);
71 
72  void setComponentMapping(std::map<int, std::string>& mapping,
73  int compId, const std::string& str);
74 
75  const std::string& findComponentMapping(const std::map<int, std::string>& mapping,
76  int compId) const;
77 
78  protected:
79 
81  friend class boost::serialization::access;
82 
86  template<class Archive>
87  void serialize(Archive & ar, const unsigned int version)
88  {
89  ar & BOOST_SERIALIZATION_NVP(myEntityTypeMap);
90  ar & BOOST_SERIALIZATION_NVP(myEntityComponentMap);
91  ar & BOOST_SERIALIZATION_NVP(myViewComponentMap);
92  ar & BOOST_SERIALIZATION_NVP(mySystemComponentMap);
93  ar & BOOST_SERIALIZATION_NVP(myModelStateMap);
94  ar & BOOST_SERIALIZATION_NVP(myAnimationMap);
95  ar & BOOST_SERIALIZATION_NVP(myDatabaseMap);
96  }
97 
98  protected:
100  std::map<int, std::string> myEntityComponentMap;
101  std::map<int, std::string> myViewComponentMap;
102  std::map<int, std::string> mySystemComponentMap;
104  std::map<int, std::string> myAnimationMap;
105  std::map<int, std::string> myDatabaseMap;
106  std::string myEmptyString;
107  std::map<int, std::string> myEmptyMap;
108  };
109 }
110 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)