VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
13 #pragma warning( push )
14 #pragma warning( disable : 4661 )
15 
18 
19 #include <boost/serialization/version.hpp>
20 #include <boost/serialization/set.hpp>
21 #include <boost/serialization/map.hpp>
22 #include <boost/config.hpp>
23 #include <map>
24 #include <string>
25 #include <set>
26 
27 namespace makArchives
28 {
35  {
36  public:
37 
38  //Global public empty string.
39  static const std::string theEmptyString;
40 
41  typedef std::map<std::string,std::string> ParameterMap;
42 
47  DtGenericTerrainRecord(const std::string& modelName = "");
48 
51 
53  DtGenericTerrainRecord(const std::string& modelName,const DtGenericTerrainRecord& copy);
54 
57 
60 
72 
78  void setParameter(const std::string& parameterName,
79  const std::string& parameterValue);
80 
85  bool clearParameter(const std::string& parameterName);
86 
91  const std::string& parameter(const std::string& parameterName) const;
92 
99  const std::string* findParameter(const std::string& parameterName) const;
100 
104  std::string* findParameter(const std::string& parameterName);
105 
107  const ParameterMap& parameters() const;
108 
110  const std::string& type() const;
111 
112  protected:
113 
114  static std::string cleanName(const std::string& name);
115 
117  {
118  public:
119  template <typename Archive>
120  void serialize(Archive& ar,unsigned int version)
121  {
123  }
124  };
125 
126  template <typename Archive>
127  void _serialize(Archive& ar,unsigned int version)
128  {
129  ar & DT_SERIALIZE_MEMBER(myType);
130  ar & DT_SERIALIZE_MEMBER(myParameters);
131  }
132 
133  std::string myType;
135 
136  };
137 }
138 
140 
141 #pragma warning( pop )
142 
143 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)