VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTerrainRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
18 
19 namespace makArchives
20 {
30  {
31  public:
32 
33  typedef std::list<DtTerrainPatchRecord> TerrainPatchRecords;
34  typedef std::list<DtFeatureLayerRecord> FeatureLayerRecords;
35  typedef std::list<DtOceanLayerRecord> OceanLayerRecords;
36  typedef std::list<DtGenericTerrainRecord> GenericRecords;
37  typedef std::list<DtTerrainOperationRecord> TerrainOperations;
38  typedef std::map<std::string,std::string> OptionalParameterMap;
39 
40 
43 
45  DtTerrainRecord(const DtTerrainRecord& orig);
46 
48  DtTerrainRecord& operator=(const DtTerrainRecord& orig);
49 
51  virtual ~DtTerrainRecord();
52 
53 
55  const std::string& coordinateSystem() const;
56 
58  const std::string& coordinateSystemParameters() const;
59 
61  void setCoordinateSystem(const std::string& cs);
62 
65  void setCoordinateSystemParameters(const std::string& csp);
66 
67 
69  TerrainPatchRecords& terrainPatchRecords();
70 
72  const TerrainPatchRecords& terrainPatchRecords() const;
73 
75  FeatureLayerRecords& featureLayerRecords();
76 
78  const FeatureLayerRecords& featureLayerRecords() const;
79 
81  void setFeatureLayerRecords(const FeatureLayerRecords& records);
82 
83 
85  OceanLayerRecords& oceanLayerRecords();
86 
88  const OceanLayerRecords& oceanLayerRecords() const;
89 
91  void setOceanLayerRecords(const OceanLayerRecords& records);
92 
94  GenericRecords& genericRecords();
95 
97  const GenericRecords& genericRecords() const;
98 
100  void setGenericRecords(const GenericRecords& records);
101 
103  const TerrainOperations& terrainOperations() const;
104 
106  void setTerrainOperations(const TerrainOperations& operations);
107 
109  virtual const std::string* findOptionalParameter(const std::string& name) const;
110 
112  virtual void setOptionalParameter(const std::string& name, const std::string& value);
113 
116  virtual void setOptionalParameters(const OptionalParameterMap&);
117 
119  virtual void removeOptionalParameter(const std::string& name);
120 
122  const OptionalParameterMap& optionalParameters() const;
123 
125  virtual void setDescription(const std::string& description);
126 
128  virtual const std::string& description() const;
129 
131  virtual void setUseICO(bool useICO);
132 
134  virtual bool useICO() const;
135 
136  protected:
137 
138  friend class boost::serialization::access;
139 
143  template<class Archive>
144  void serialize(Archive & ar, const unsigned int version)
145  {
146  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystem);
147  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystemParameters);
148  ar & BOOST_SERIALIZATION_NVP(myTerrainPatchRecords);
149  ar & BOOST_SERIALIZATION_NVP(myFeatureLayerRecords);
150 
151  if (version > 0)
152  {
153  ar & BOOST_SERIALIZATION_NVP(myGenericRecords);
154  }
155 
156  ar & BOOST_SERIALIZATION_NVP(myTerrainOperations);
157 
158  if (version > 1 )
159  {
160  ar & BOOST_SERIALIZATION_NVP(myOceanLayerRecords);
161  }
162  if ( version > 2 )
163  {
164  ar & BOOST_SERIALIZATION_NVP(myOptionalParameters);
165  }
166  if ( version > 3)
167  {
168  ar & BOOST_SERIALIZATION_NVP(myDescription);
169  ar & BOOST_SERIALIZATION_NVP(myUseICO);
170  }
171  }
172 
173  protected:
174 
175  std::string myCoordinateSystem;
183  std::string myDescription;
184  bool myUseICO;
185 
186  };
187 }
188 
190 
191 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)