VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtApplicationSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 
13 namespace makArchives
14 {
19  {
20  public:
23 
26 
29 
32 
34  void setViewControlEnabled(bool enabled);
35 
37  bool viewControlEnabled() const;
38 
40  void setScreenCaptureFilePath(const std::string& filePath);
41 
43  const std::string& screenCaptureFilePath() const;
44 
47  void setMouseHideEnabled(bool enabled);
48 
51  bool mouseHideEnabled() const;
52 
55  void setMouseHideTime(float hideTime);
56 
58  float mouseHideTime() const;
59 
61  void setShowQuitDialogOnClose(bool show);
62 
64  bool showQuitDialogOnClose() const;
65 
67  void setPaperMapLayerTimeout(double val);
68 
70  double paperMapLayerTimeout() const;
71 
72  protected:
73 
74  friend class boost::serialization::access;
75 
79  template<class Archive>
80  void serialize(Archive & ar, const unsigned int version)
81  {
82 
83  ar & BOOST_SERIALIZATION_NVP(myViewControlEnabled);
84  if ( version >= 2)
85  {
86  ar & BOOST_SERIALIZATION_NVP(myScreenCaptureFilePath);
87  }
88  if (version >= 3)
89  {
90  ar & BOOST_SERIALIZATION_NVP(myMouseHideEnabled);
91  ar & BOOST_SERIALIZATION_NVP(myMouseHideTime);
92  }
93  if (version >= 4)
94  {
95  ar & BOOST_SERIALIZATION_NVP(myShowQuitDialogOnClose);
96  }
97  if (version >= 5)
98  {
99  ar& BOOST_SERIALIZATION_NVP(myPaperMapLayerTimeout);
100  }
101  }
102 
109  };
110 }
111 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
Record for the settings associated with the application that don&#39;t merit an additional settings file ...
Definition: DtApplicationSettingsRecord.h:18
std::string myScreenCaptureFilePath
Definition: DtApplicationSettingsRecord.h:104
Contains DLL export macros.
double myPaperMapLayerTimeout
Definition: DtApplicationSettingsRecord.h:108
bool myShowQuitDialogOnClose
Definition: DtApplicationSettingsRecord.h:107
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: DtApplicationSettingsRecord.h:80
bool myMouseHideEnabled
Definition: DtApplicationSettingsRecord.h:105
bool myViewControlEnabled
Definition: DtApplicationSettingsRecord.h:103
float myMouseHideTime
Definition: DtApplicationSettingsRecord.h:106
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)