VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfScriptedTaskSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
15 
16 #include <boost/serialization/access.hpp>
17 #include <boost/serialization/nvp.hpp>
18 #include <boost/serialization/list.hpp>
19 #include <boost/serialization/map.hpp>
20 #include <boost/serialization/vector.hpp>
21 #include <boost/serialization/string.hpp>
22 
23 namespace makVrf
24 {
26  {
27  public:
29  {
30  DtDenySystemScriptEditing = 0x00000001,
31  DtDoNotWarnOnSystemScriptChange = 0x00000002,
32  DtMonitorFrameRates = 0x00000004,
33  };
34 
35  public:
38 
40 
41  public:
42 
43  virtual void setFlag(int flag, bool set);
44 
47  void setIndent(int);
48  int indent() const;
49 
50  void setWarnOnSystemScriptChange(bool);
51  bool warnOnSystemScriptChange() const;
52 
53  void setDenySystemScriptEditing(bool);
54  bool denySystemScriptEditing() const;
55 
56  void setMonitorFrameRates(bool);
57  bool monitorFrameRates() const;
58 
59  void setScriptEditor(const std::string&);
60  const std::string& scriptEditor() const;
61 
62  protected:
63  friend class boost::serialization::access;
64 
68  template<class Archive>
69  void serialize(Archive & ar, const unsigned int version)
70  {
71  ar & BOOST_SERIALIZATION_NVP(myScriptedTaskOptions);
72  ar & BOOST_SERIALIZATION_NVP(myScriptEditor);
73 
74  if (version >= 2)
75  {
76  ar & BOOST_SERIALIZATION_NVP(myIndent);
77  }
78  }
79 
80  protected:
82  std::string myScriptEditor;
83  int myIndent;
84  };
85 }
86 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)