VR-Forces 4.8 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) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 
13 
14 namespace makArchives
15 {
20  {
21  public:
24 
27 
30 
33 
35  void setViewControlEnabled(bool enabled);
36 
38  bool viewControlEnabled() const;
39 
41  void setScreenCaptureFilePath(const std::string& filePath);
42 
44  const std::string& screenCaptureFilePath() const;
45 
48  void setMouseHideEnabled(bool enabled);
49 
52  bool mouseHideEnabled() const;
53 
56  void setMouseHideTime(float hideTime);
57 
59  float mouseHideTime() const;
60 
62  void setShowQuitDialogOnClose(bool show);
63 
65  bool showQuitDialogOnClose() const;
66 
67 
68  protected:
69 
70  friend class boost::serialization::access;
71 
75  template<class Archive>
76  void serialize(Archive & ar, const unsigned int version)
77  {
78 
79  ar & BOOST_SERIALIZATION_NVP(myViewControlEnabled);
80  if ( version >= 2)
81  {
82  ar & BOOST_SERIALIZATION_NVP(myScreenCaptureFilePath);
83  }
84  if (version >= 3)
85  {
86  ar & BOOST_SERIALIZATION_NVP(myMouseHideEnabled);
87  ar & BOOST_SERIALIZATION_NVP(myMouseHideTime);
88  }
89  if (version >= 4)
90  {
91  ar & BOOST_SERIALIZATION_NVP(myShowQuitDialogOnClose);
92  }
93  }
94 
100  };
101 }
102 
Record for the settings associated with the application that don&#39;t merit an additional settings file ...
Definition: DtApplicationSettingsRecord.h:19
std::string myScreenCaptureFilePath
Definition: DtApplicationSettingsRecord.h:96
Contains DLL export macros.
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 2)
bool myShowQuitDialogOnClose
Definition: DtApplicationSettingsRecord.h:99
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:76
bool myMouseHideEnabled
Definition: DtApplicationSettingsRecord.h:97
bool myViewControlEnabled
Definition: DtApplicationSettingsRecord.h:95
float myMouseHideTime
Definition: DtApplicationSettingsRecord.h:98
#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)