VR-Forces 4.1.1 Class Documentation
DtAddPropsRuleRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAddPropsRuleRecord.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtAddPropsRuleRecord_H_
14 #define DtAddPropsRuleRecord_H_
15 
17 
18 #include <map>
19 #include <string>
20 #include <vector>
21 
22 namespace makArchives
23 {
27  {
28 
29  public:
30 
31  typedef std::map<std::string, std::string> FieldValueMap;
32 
35 
38 
40  DtAddPropsRuleRecord& operator=(const DtAddPropsRuleRecord& orig);
41 
44 
46 
47 
48  const std::string& propType() const;
49  void setPropType(const std::string& propType);
50 
51  const std::string& modelDefinition() const;
52  void setModelDefinition(const std::string& modelDef);
53 
54  const std::string& rotationField() const;
55  void setRotationField(const std::string& rotationField);
56 
57  const FieldValueMap& fieldValueMap() const;
58  void setFieldValueMap(const FieldValueMap& fvMap);
59 
60  bool groundClamp() const;
61  void setGroundClamp(bool gc);
62 
64 
65 
66  protected:
67 
68  friend class boost::serialization::access;
69 
73  template<class Archive>
74  void serialize(Archive & ar, const unsigned int version)
75  {
76  ar & BOOST_SERIALIZATION_NVP(myPropType);
77  ar & BOOST_SERIALIZATION_NVP(myModelDef);
78  ar & BOOST_SERIALIZATION_NVP(myFieldValueMap);
79  ar & BOOST_SERIALIZATION_NVP(myGroundClamp);
80 
81  if (version >= 1)
82  {
83  ar & BOOST_SERIALIZATION_NVP(myRotationField);
84  }
85  }
86 
87  protected:
88 
89  std::string myPropType;
90  std::string myModelDef;
93  std::string myRotationField;
94  };
95 
96  typedef std::vector<DtAddPropsRuleRecord> DtAddPropsRuleRecordVector;
97 
98 }
99 
101 
102 #endif
103 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)