VR-Forces 4.6 Class Documentation
 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 
72  protected:
73  friend class boost::serialization::access;
74 
78  template<class Archive>
79  void serialize(Archive & ar, const unsigned int version)
80  {
81  ar & BOOST_SERIALIZATION_NVP(mySessionOptions);
82 
83  if ((version < 15) && (Archive::is_loading::value))
84  {
85  return;
86  }
87  else if ((version == 15) && (Archive::is_loading::value))
88  {
89  setAllowScenarioChanges(true);
90  }
91  }
92 
93  protected:
95  std::string myHelpFile;
96  };
97 }
98 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)