VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSensorRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
7 
8 #pragma once
9 
13 
14 namespace makArchives
15 {
16 
20  {
21  public:
24 
26  DtSensorRecord(const DtSensorRecord& obj);
27 
29  DtSensorRecord& operator=(const DtSensorRecord& rhs);
30 
32 
33  typedef std::map<std::string, int> AttributesInt;
34  typedef std::map<std::string, bool> AttributesBool;
35  typedef std::map<std::string, float> AttributesFloat;
36  typedef std::map<std::string, std::string> AttributesString;
38 
40  const AttributesInt& attributesInt() const;
41 
43  const AttributesFloat& attributesFloat() const;
44 
46  const AttributesBool& attributesBool() const;
47 
49  const AttributesString& attributesString() const;
50 
52  void setAttributes(const AttributesInt& attributes);
53 
55  void setAttributes(const AttributesBool& attributes);
56 
58  void setAttributes(const AttributesFloat& attributes);
59 
61  void setAttributes(const AttributesString& attributes);
62 
64  const std::string& name() const;
65 
67  void setName(const std::string& name);
68 
70  const std::string& module() const;
71 
73  void setModule(const std::string& moduleName);
74 
75  protected:
76 
78  void cleanupAttributeNames();
79 
80  friend class boost::serialization::access;
81 
82  template<class Archive>
83  void serialize(Archive & ar, const unsigned int version)
84  {
85  ar & BOOST_SERIALIZATION_NVP(myName);
86  ar & BOOST_SERIALIZATION_NVP(myModuleName);
87  ar & BOOST_SERIALIZATION_NVP(myAttributesInt);
88  ar & BOOST_SERIALIZATION_NVP(myAttributesBool);
89  ar & BOOST_SERIALIZATION_NVP(myAttributesFloat);
90  ar & BOOST_SERIALIZATION_NVP(myAttributesString);
91 
92  if(version <= 1)
93  {
94  cleanupAttributeNames();
95  }
96 
97  }
98 
105  };
106 }
108 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)