VR-Forces 4.1 Class Documentation
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 
14 
15 namespace makArchives
16 {
17 
21  {
22  public:
25 
27  DtSensorRecord(const DtSensorRecord& obj);
28 
30  DtSensorRecord& operator=(const DtSensorRecord& rhs);
31 
33 
34  typedef std::map<std::string, int> AttributesInt;
35  typedef std::map<std::string, bool> AttributesBool;
36  typedef std::map<std::string, float> AttributesFloat;
37  typedef std::map<std::string, std::string> AttributesString;
39 
41  const AttributesInt& attributesInt() const;
42 
44  const AttributesFloat& attributesFloat() const;
45 
47  const AttributesBool& attributesBool() const;
48 
50  const AttributesString& attributesString() const;
51 
53  void setAttributes(const AttributesInt& attributes);
54 
56  void setAttributes(const AttributesBool& attributes);
57 
59  void setAttributes(const AttributesFloat& attributes);
60 
62  void setAttributes(const AttributesString& attributes);
63 
65  const std::string& name() const;
66 
68  void setName(const std::string& name);
69 
71  const std::string& module() const;
72 
74  void setModule(const std::string& moduleName);
75 
76  protected:
77  friend class boost::serialization::access;
78 
79  template<class Archive>
80  void serialize(Archive & ar, const unsigned int version)
81  {
82  ar & BOOST_SERIALIZATION_NVP(myName);
83  ar & BOOST_SERIALIZATION_NVP(myModuleName);
84  ar & BOOST_SERIALIZATION_NVP(myAttributesInt);
85  ar & BOOST_SERIALIZATION_NVP(myAttributesBool);
86  ar & BOOST_SERIALIZATION_NVP(myAttributesFloat);
87  ar & BOOST_SERIALIZATION_NVP(myAttributesString);
88  }
89 
96  };
97 }
99 

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)