VR-Forces 4.3 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) 2013 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  ~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 
124  protected:
125 
126  friend class boost::serialization::access;
127 
131  template<class Archive>
132  void serialize(Archive & ar, const unsigned int version)
133  {
134  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystem);
135  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystemParameters);
136  ar & BOOST_SERIALIZATION_NVP(myTerrainPatchRecords);
137  ar & BOOST_SERIALIZATION_NVP(myFeatureLayerRecords);
138 
139  if (version > 0)
140  {
141  ar & BOOST_SERIALIZATION_NVP(myGenericRecords);
142  }
143 
144  ar & BOOST_SERIALIZATION_NVP(myTerrainOperations);
145 
146  if (version > 1 )
147  {
148  ar & BOOST_SERIALIZATION_NVP(myOceanLayerRecords);
149  }
150  if ( version > 2 )
151  {
152  ar & BOOST_SERIALIZATION_NVP(myOptionalParameters);
153  }
154  }
155 
156  protected:
157 
158  std::string myCoordinateSystem;
166 
167  };
168 }
169 
171 
172 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)