VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSurfaceSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtSurfaceSettingsRecord_H_
11 #define DtSurfaceSettingsRecord_H_
12 
13 #include <makArchives/makArchives.h>
14 #include <map>
15 
16 namespace makArchives
17 {
22  {
23 
24  public:
25 
28 
31 
32  bool operator==(const DtSurfaceSettingsRecord& orig) const;
33  bool operator!=(const DtSurfaceSettingsRecord& orig) const;
34 
36  DtSurfaceSettingsRecord& operator=(const DtSurfaceSettingsRecord& orig);
37 
40 
42  typedef std::map<int, bool> SurfaceVisibleMap;
43 
45  const SurfaceVisibleMap& surfaceVisibleMap() const;
46 
48  void setSurfaceVisibleMap(const SurfaceVisibleMap& svMap);
49 
50  protected:
51 
52  friend class boost::serialization::access;
53 
57  template<class Archive>
58  void serialize(Archive & ar, const unsigned int version)
59  {
60  ar & BOOST_SERIALIZATION_NVP(mySurfaceVisibleMap);
61  }
62 
63 
64  protected:
65 
67 
68 
69  };
70 }
71 
72 #endif
73 
std::map< int, bool > SurfaceVisibleMap
Map from surface IDs to on/off setting.
Definition: DtSurfaceSettingsRecord.h:42
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Contains DLL export macros.
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtSurfaceSettingsRecord.h:58
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
Record of which soil/surface types are visible and which are invisible for a particular terrain...
Definition: DtSurfaceSettingsRecord.h:21
SurfaceVisibleMap mySurfaceVisibleMap
Definition: DtSurfaceSettingsRecord.h:66

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)