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>
31 DtAutoJoinSession = 0x00000001,
32 DtAskToJoin = 0x00000002,
33 DtAlwaysJoinWithSessionDatabase = 0x00000004,
34 DtAlwaysJoinWithOpenDatabase = 0x00000008,
35 DtShowSessionDialogs = 0x00000010,
36 DtAllowScenarioChanges = 0x00000040,
37 DtAutomaticallyOpenSessionDatabaseWithoutJoiningSession = 0x00040000,
48 virtual void setFlag(
int flag,
bool set);
50 void setAutoJoinSession(
bool);
51 bool autoJoinSession()
const;
53 void setAutomaticallyOpenSessionDatabaseWithoutJoiningSession(
bool);
54 bool automaticallyOpenSessionDatabaseWithoutJoiningSession()
const;
56 void setAskToJoin(
bool);
57 bool askToJoin()
const;
59 void setAlwaysJoinWithSessionDatabase(
bool);
60 bool alwaysJoinWithSessionDatabase()
const;
62 void setAlwaysJoinWithOpenDatabase(
bool);
63 bool alwaysJoinWithOpenDatabase()
const;
65 void setAllowScenarioChanges(
bool);
66 bool allowScenarioChanges()
const;
69 virtual void setDisplaySessionDialogs(
bool);
70 virtual bool displaySessionDialogs()
const;
73 virtual void setBackendTimeoutInterval(
int);
74 virtual int backendTimeoutInterval()
const;
77 friend class boost::serialization::access;
82 template<
class Archive>
83 void serialize(Archive & ar,
const unsigned int version)
85 ar & BOOST_SERIALIZATION_NVP(mySessionOptions);
87 if ((version < 15) && (Archive::is_loading::value))
91 else if ((version == 15) && (Archive::is_loading::value))
93 setAllowScenarioChanges(
true);
98 ar & BOOST_SERIALIZATION_NVP(myBackendTimeoutInterval);
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 & operator is defined similar to <<...
Definition: vrfSessionSettingsRecord.h:83
VrfSessionSettingsOptions
Definition: vrfSessionSettingsRecord.h:29
int myBackendTimeoutInterval
Definition: vrfSessionSettingsRecord.h:104