VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
commandLevelsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 20201 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
9 #include <vrvUtil/DtUnicode.h>
10 
11 #include <set>
12 
13 #include <boost/serialization/access.hpp>
14 #include <boost/serialization/nvp.hpp>
15 #include <boost/serialization/list.hpp>
16 #include <boost/serialization/map.hpp>
17 #include <boost/serialization/vector.hpp>
18 #include <boost/serialization/string.hpp>
19 
20 namespace makVrf
21 {
22  static const int TASKSETGROUP_ALL_LEVEL = 99999;
23  static const int TASKSETGROUP_FAVORITES_LEVEL = 0;
24  static const int TASKSETGROUP_HIGHCOMMAND_LEVEL = 1;
25  static const int TASKSETGROUP_DETAILEDCOMMAND_LEVEL = 2;
26 
28  {
29  public:
30 
31  public:
34 
35  virtual ~DtCommandLevelsRecord();
36 
37  public:
38 
46  virtual void addToTaskSetCommandLevel(int level, const std::string&);
47 
49  virtual void removeFromTaskSetCommandLevel(int level, const std::string&);
50 
51  virtual std::set<int> taskSetCommandLevels(const std::string&) const;
52  virtual bool isInTaskSetCommandLevel(int level, const std::string& taskSetType) const;
54 
57  virtual void setExpandCollapsedState(const std::string& section, bool exp);
58  virtual bool expandCollapsedState(const std::string& section) const;
60 
63  virtual void setAlwaysPopOut(bool);
64  virtual bool alwaysPopOut() const;
66 
67  protected:
68  friend class boost::serialization::access;
69 
73  template<class Archive>
74  void serialize(Archive & ar, const unsigned int version)
75  {
76  ar & BOOST_SERIALIZATION_NVP(myTaskSetCommandLevels);
77 
78  if (version >= 2)
79  {
80  ar & BOOST_SERIALIZATION_NVP(myExpandedCollapsedStates);
81  ar & BOOST_SERIALIZATION_NVP(myAlwaysPopOut);
82  }
83  }
84 
85  protected:
86  std::map<int, std::set<std::string> > myTaskSetCommandLevels;
87  std::map<std::string, bool> myExpandedCollapsedStates;
89  };
90 }
91 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
static const int TASKSETGROUP_HIGHCOMMAND_LEVEL
Definition: commandLevelsRecord.h:24
bool myAlwaysPopOut
Definition: commandLevelsRecord.h:88
static const int TASKSETGROUP_DETAILEDCOMMAND_LEVEL
Definition: commandLevelsRecord.h:25
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: commandLevelsRecord.h:74
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::map< int, std::set< std::string > > myTaskSetCommandLevels
Definition: commandLevelsRecord.h:86
std::map< std::string, bool > myExpandedCollapsedStates
Definition: commandLevelsRecord.h:87
static const int TASKSETGROUP_FAVORITES_LEVEL
Definition: commandLevelsRecord.h:23
Definition: commandLevelsRecord.h:27
static const int TASKSETGROUP_ALL_LEVEL
Definition: commandLevelsRecord.h:22

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)