VR-Forces 4.1 Class Documentation
DtTerrainRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTerrainRecord.h,v $ $Revision: 1.14 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtTerrainRecord_H_
14 #define DtTerrainRecord_H_
15 
21 
22 namespace makArchives
23 {
33  {
34  public:
35 
36  typedef std::list<DtTerrainPatchRecord> TerrainPatchRecords;
37  typedef std::list<DtFeatureLayerRecord> FeatureLayerRecords;
38  typedef std::list<DtGenericTerrainRecord> GenericRecords;
39  typedef std::list<DtTerrainOperationRecord> TerrainOperations;
40 
41 
44 
46  DtTerrainRecord(const DtTerrainRecord& orig);
47 
49  DtTerrainRecord& operator=(const DtTerrainRecord& orig);
50 
52  ~DtTerrainRecord();
53 
54 
56  const std::string& coordinateSystem() const;
57 
59  const std::string& coordinateSystemParameters() const;
60 
62  void setCoordinateSystem(const std::string& cs);
63 
66  void setCoordinateSystemParameters(const std::string& csp);
67 
68 
70  TerrainPatchRecords& terrainPatchRecords();
71 
73  const TerrainPatchRecords& terrainPatchRecords() const;
74 
76  FeatureLayerRecords& featureLayerRecords();
77 
79  const FeatureLayerRecords& featureLayerRecords() const;
80 
82  void setFeatureLayerRecords(const FeatureLayerRecords& records);
83 
85  GenericRecords& genericRecords();
86 
88  const GenericRecords& genericRecords() const;
89 
91  void setGenericRecords(const GenericRecords& records);
92 
94  const TerrainOperations& terrainOperations() const;
95 
97  void setTerrainOperations(const TerrainOperations& operations);
98 
99  protected:
100 
101  friend class boost::serialization::access;
102 
106  template<class Archive>
107  void serialize(Archive & ar, const unsigned int version)
108  {
109  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystem);
110  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystemParameters);
111  ar & BOOST_SERIALIZATION_NVP(myTerrainPatchRecords);
112  ar & BOOST_SERIALIZATION_NVP(myFeatureLayerRecords);
113 
114  if (version > 0)
115  {
116  ar & BOOST_SERIALIZATION_NVP(myGenericRecords);
117  }
118 
119  ar & BOOST_SERIALIZATION_NVP(myTerrainOperations);
120  }
121 
122  protected:
123 
124  std::string myCoordinateSystem;
130 
131  };
132 }
133 
135 
136 #endif
137 

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)