VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiModelStateMappingLogic.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <QtCore/QStringList>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtCigiModelStateMappingInterface;
21  class DtModelSemanticsMapper;
22  class DtMapEditorInterface;
23  class DtSharedCigiSettingsManager;
24  class DtPersistenceControlsInterface;
25  class DtSettingsBackup;
26 
31  {
32  public:
35  componentMapIf, DtCigiSettingsInterface* settingsIf,
36  DtMapEditorInterface* editorIf,
38 
41 
42  protected:
44  virtual void updateValues();
45 
47  virtual void initializeStateStrings();
48 
50  virtual void on_valueAdded(const std::string& key, const std::string& value, int index);
51 
53  virtual void on_valueDeleted(const std::string& key);
54 
56  virtual void on_valueRenamed(const std::string& oldName, const std::string& newName);
57  virtual void cigiMappingsRestored(const DtSettingsBackup* s);
58 
59  protected:
63  QStringList myStateStrings;
64  std::map<int, std::string> myStateIdToNameMap;
65  std::map<std::string, int> myNameToStateIdMap;
66  };
67 
68  class DtCigiConnection;
70 
72  {
73  public:
76 
79 
81  static DtCigiModelStateMappingLogicCreator& instance(DtDe& de);
82 
83  virtual void registerInstance(DtDe& de, DtCigiModelStateMappingLogicCreator* creator);
84 
87  componentMapIf, DtCigiSettingsInterface* settingsIf,
88  DtMapEditorInterface* editorIf,
89  DtPersistenceControlsInterface* toolbarIf) const;
90  };
91 }

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)