VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSessionSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
15 #include <vrvUtil/DtUnicode.h>
16 
17 #include <boost/serialization/access.hpp>
18 #include <boost/serialization/nvp.hpp>
19 #include <boost/serialization/list.hpp>
20 #include <boost/serialization/map.hpp>
21 #include <boost/serialization/vector.hpp>
22 #include <boost/serialization/string.hpp>
23 
24 namespace makVrf
25 {
27  {
28  public:
30  {
31  DtAutoJoinSession = 0x00000001,
32  DtAskToJoin = 0x00000002,
33  DtAlwaysJoinWithSessionDatabase = 0x00000004,
34  DtAlwaysJoinWithOpenDatabase = 0x00000008,
35  DtShowSessionDialogs = 0x00000010,
36  DtAllowScenarioChanges = 0x00000040,
37  DtAutomaticallyOpenSessionDatabaseWithoutJoiningSession = 0x00040000,
38  };
39 
40  public:
43 
44  virtual ~DtVrfSessionSettingsRecord();
45 
46  public:
47 
48  virtual void setFlag(int flag, bool set);
49 
50  void setAutoJoinSession(bool);
51  bool autoJoinSession() const;
52 
53  void setAutomaticallyOpenSessionDatabaseWithoutJoiningSession(bool);
54  bool automaticallyOpenSessionDatabaseWithoutJoiningSession() const;
55 
56  void setAskToJoin(bool);
57  bool askToJoin() const;
58 
59  void setAlwaysJoinWithSessionDatabase(bool);
60  bool alwaysJoinWithSessionDatabase() const;
61 
62  void setAlwaysJoinWithOpenDatabase(bool);
63  bool alwaysJoinWithOpenDatabase() const;
64 
65  void setAllowScenarioChanges(bool);
66  bool allowScenarioChanges() const;
67 
69  virtual void setDisplaySessionDialogs(bool);
70  virtual bool displaySessionDialogs() const;
71 
73  virtual void setBackendTimeoutInterval(int);
74  virtual int backendTimeoutInterval() const;
75 
76  protected:
77  friend class boost::serialization::access;
78 
82  template<class Archive>
83  void serialize(Archive & ar, const unsigned int version)
84  {
85  ar & BOOST_SERIALIZATION_NVP(mySessionOptions);
86 
87  if ((version < 15) && (Archive::is_loading::value))
88  {
89  return;
90  }
91  else if ((version == 15) && (Archive::is_loading::value))
92  {
93  setAllowScenarioChanges(true);
94  }
95 
96  if (version >= 17)
97  {
98  ar & BOOST_SERIALIZATION_NVP(myBackendTimeoutInterval);
99  }
100  }
101 
102  protected:
105  };
106 }
107 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
VrfSessionSettingsOptions mySessionOptions
Definition: vrfSessionSettingsRecord.h:103
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: vrfSessionSettingsRecord.h:26
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: vrfSessionSettingsRecord.h:83
VrfSessionSettingsOptions
Definition: vrfSessionSettingsRecord.h:29
int myBackendTimeoutInterval
Definition: vrfSessionSettingsRecord.h:104

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)