VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCockpitSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtCockpitSettingsRecord.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
16 
17 namespace makArchives
18 {
22  {
23  public:
24 
27 
30 
33 
35  DtCockpitSettingsRecord& operator=(const DtCockpitSettingsRecord& orig);
36 
37  void setDataPath(const std::string& path);
38  const std::string& dataPath() const;
39 
40  void setShowCockpits(bool show);
41  const bool showCockpits() const;
42 
43  void setSmoothingEnabled(bool smooth);
44  const bool smoothingEnabled() const;
45 
46  void setSmoothingPeriod(const double& period);
47  const double smoothingPeriod() const;
48 
49 
50  protected:
51 
53  friend class boost::serialization::access;
54 
58  template<class Archive>
59  void serialize(Archive & ar, const unsigned int version)
60  {
61  ar & BOOST_SERIALIZATION_NVP(myDataPath);
62  ar & BOOST_SERIALIZATION_NVP(myShowHuds);
63  ar & BOOST_SERIALIZATION_NVP(mySmoothingEnabled);
64  ar & BOOST_SERIALIZATION_NVP(mySmoothingPeriod);
65  }
66 
67  protected:
68  std::string myDataPath;
69  bool myShowHuds;
72  };
73 
74 } //makArchives::
bool mySmoothingEnabled
Definition: DtCockpitSettingsRecord.h:70
Contains DLL export macros.
double mySmoothingPeriod
Definition: DtCockpitSettingsRecord.h:71
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: DtCockpitSettingsRecord.h:59
std::string myDataPath
Definition: DtCockpitSettingsRecord.h:68
bool myShowHuds
Definition: DtCockpitSettingsRecord.h:69
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
A DtCockpitSettingsRecord contains the information to recreate a prop.
Definition: DtCockpitSettingsRecord.h:21

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)