VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOceanLayerRecord.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 
12 #include <makArchives/makArchives.h>
13 
14 #include <string>
15 
16 namespace makArchives
17 {
18 
22  {
23 
24  public:
25 
28 
31 
33  DtOceanLayerRecord& operator=(const DtOceanLayerRecord& orig);
34 
37 
39  const std::string& name() const;
40 
42  void setName(const std::string& name);
43 
45  double seaLevel() const;
46 
48  void setSeaLevel(double seaLevel);
49 
51  int lodRange() const;
52 
54  void setLodRange( int range );
55 
56  protected:
57 
58  friend class boost::serialization::access;
59 
63  template<class Archive>
64  void serialize(Archive & ar, const unsigned int version)
65  {
66  ar & BOOST_SERIALIZATION_NVP(myName);
67  ar & BOOST_SERIALIZATION_NVP(mySeaLevel);
68  ar & BOOST_SERIALIZATION_NVP(myLodRange);
69  }
70 
71  protected:
72  std::string myName;
73  double mySeaLevel;
75  };
76 }
77 
78 
A DtOceanLayerRecord contains the information to add dynamic water.
Definition: DtOceanLayerRecord.h:21
Contains DLL export macros.
double mySeaLevel
Definition: DtOceanLayerRecord.h:73
std::string myName
Definition: DtOceanLayerRecord.h:72
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: DtOceanLayerRecord.h:64
int myLodRange
Definition: DtOceanLayerRecord.h:74
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)