VR-Forces 4.1 Class Documentation
DtGenericTerrainRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #ifndef DtGenericTerrainRecord_H_
11 #define DtGenericTerrainRecord_H_
12 
15 
16 #include <boost/serialization/version.hpp>
17 #include <boost/serialization/set.hpp>
18 #include <boost/serialization/map.hpp>
19 #include <boost/config.hpp>
20 #include <map>
21 #include <string>
22 #include <set>
23 
24 namespace makArchives
25 {
32  {
33  public:
34 
35  //Global public empty string.
36  static const std::string theEmptyString;
37 
38  typedef std::map<std::string,std::string> ParameterMap;
39 
44  DtGenericTerrainRecord(const std::string& modelName = "");
45 
48 
50  DtGenericTerrainRecord(const std::string& modelName,const DtGenericTerrainRecord& copy);
51 
54 
57 
69 
75  void setParameter(const std::string& parameterName,
76  const std::string& parameterValue);
77 
82  bool clearParameter(const std::string& parameterName);
83 
88  const std::string& parameter(const std::string& parameterName) const;
89 
96  const std::string* findParameter(const std::string& parameterName) const;
97 
101  std::string* findParameter(const std::string& parameterName);
102 
104  const ParameterMap& parameters() const;
105 
107  const std::string& type() const;
108 
109  protected:
110 
111  static std::string cleanName(const std::string& name);
112 
114  {
115  public:
116  template <typename Archive>
117  void serialize(Archive& ar,unsigned int version)
118  {
120  }
121  };
122 
123  template <typename Archive>
124  void _serialize(Archive& ar,unsigned int version)
125  {
126  ar & DT_SERIALIZE_MEMBER(myType);
127  ar & DT_SERIALIZE_MEMBER(myParameters);
128  }
129 
130  std::string myType;
132 
133  };
134 }
135 
137 
138 #endif

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)