VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scenarioEventSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 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 makVrv
24 {
25  class DtUnicode;
26 }
27 
28 namespace makVrf
29 {
31  {
32  public:
34  {
35  DtShowEventOptionsNone = 0,
36  DtShowAllEvents = 0x00000001,
37  DtShowAllEventsByVisibleForce = 0x00000002,
38  DtShowAllActiveEvents = 0x00000004,
39  DtShowAllActiveEventsByVisibleForce = 0x00000008,
40  DtShowDialogsForStartedEvents = 0x00000010,
41  DtAllShowEvents = (DtShowAllEvents | DtShowAllEventsByVisibleForce | DtShowAllActiveEvents | DtShowAllActiveEventsByVisibleForce)
42  };
43 
46  typedef std::map<std::string, double> SensorSignatures;
47  typedef std::vector<std::pair<std::string, SensorSignatures> > DefaultSensorSignatures;
48 
49  public:
52 
54 
55  public:
56 
57  virtual void setFlag(int flag, bool set);
58 
59  void setShowAllEvents(bool);
60  bool showAllEvents() const;
61 
62  void setShowAllEventsByVisibleForce(bool);
63  bool showAllEventsByVisibleForce() const;
64 
65  void setShowAllActiveEvents(bool);
66  bool showAllActiveEvents() const;
67 
68  void setShowAllActiveEventsByVisibleForce(bool);
69  bool showAllActiveEventsByVisibleForce() const;
70 
71  void setShowDialogsForStartedEvents(bool);
72  bool showDialogsForStartedEvents() const;
73 
74  int options() const
75  {
76  return myOptions;
77  }
78 
79  void addDefaultSensorSignature(const makVrv::DtUnicode& type, const SensorSignatures& sigs);
80  void removeDefaultSensorSignature(const makVrv::DtUnicode& type);
81  const DefaultSensorSignatures& defaultSensorSignatures() const;
82  void setDefaultSensorSignatures(const DefaultSensorSignatures& signatures);
83  makVrv::DtUnicode typeFromSignature(const SensorSignatures& sigs) const;
84  virtual DtScenarioEventSettingsRecord::SensorSignatures signaturesFromType(const makVrv::DtUnicode& type) const;
85 
86  protected:
87  friend class boost::serialization::access;
88 
92  template<class Archive>
93  void serialize(Archive & ar, const unsigned int version)
94  {
95  ar & BOOST_SERIALIZATION_NVP(myOptions);
96  }
97 
98  protected:
100  DefaultSensorSignatures myDefaultSensorSignatures;
101  };
102 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)