VR-Forces Developer's Guide
 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 
9 
10 #pragma once
11 
13 
14 namespace makArchives
15 {
19  {
20  public:
21 
24 
27 
30 
32  DtCockpitSettingsRecord& operator=(const DtCockpitSettingsRecord& orig);
33 
34  void setDataPath(const std::string& path);
35  const std::string& dataPath() const;
36 
37  void setShowCockpits(bool show);
38  const bool showCockpits() const;
39 
40  void setSmoothingEnabled(bool smooth);
41  const bool smoothingEnabled() const;
42 
43  void setSmoothingPeriod(const double& period);
44  const double smoothingPeriod() const;
45 
46 
47  protected:
48 
50  friend class boost::serialization::access;
51 
55  template<class Archive>
56  void serialize(Archive & ar, const unsigned int version)
57  {
58  ar & BOOST_SERIALIZATION_NVP(myDataPath);
59  ar & BOOST_SERIALIZATION_NVP(myShowHuds);
60  ar & BOOST_SERIALIZATION_NVP(mySmoothingEnabled);
61  ar & BOOST_SERIALIZATION_NVP(mySmoothingPeriod);
62  }
63 
64  protected:
65  std::string myDataPath;
66  bool myShowHuds;
69  };
70 
71 } //makArchives::
bool mySmoothingEnabled
Definition: DtCockpitSettingsRecord.h:67
Contains DLL export macros.
double mySmoothingPeriod
Definition: DtCockpitSettingsRecord.h:68
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:56
std::string myDataPath
Definition: DtCockpitSettingsRecord.h:65
bool myShowHuds
Definition: DtCockpitSettingsRecord.h:66
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
A DtCockpitSettingsRecord contains the information to recreate a prop.
Definition: DtCockpitSettingsRecord.h:18

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)