VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttributeGroupTemplateManager.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtAttributeGroupTemplateManager.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 #pragma once
9 
10 #include <vrvVrl/vrvVrl.h>
11 
13 
14 #ifndef DT_PROTOCOL_NAMESPACE
15 #error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
16 #endif
17 
18 namespace makVrv
19 {
20  namespace DT_PROTOCOL_NAMESPACE
21  {
22  class DtVrlinkConnection;
23 
28  {
29  public:
32 
35 
37  virtual void addAttributeTemplate(const DtGlobalObjectDesignator& groupId,
38  const std::string& name, int attributeType, double minRange, double maxRange);
39 
41  virtual bool getAttributeTemplateInfo(const DtGlobalObjectDesignator& groupId,
42  const std::string& name, int& attributeType, double& minRange, double& maxRange,
43  int& index);
44 
45  virtual void removeAttributeTemplate(const DtGlobalObjectDesignator& groupId,
46  const std::string& name);
47 
48  boost::signal<void (const DtGlobalObjectDesignator& groupId, const std::string& name,
49  int attributeType, double minRange, double maxRange, int index)> signal_templateAdded;
50 
51  private:
54 
57 
58  protected:
60 
61  protected:
63  {
64  double myMinRange;
65  double myMaxRange;
67  int myIndex;
68  };
69 
71  typedef std::map<std::pair<DtGlobalObjectDesignator, std::string>, DtAttributeTemplateInfo> AttributeTemplateMap;
73  std::map<DtGlobalObjectDesignator, int> myAttributesPerGroup;
74 
75  };
76  }
77 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
boost::signal< void(const DtGlobalObjectDesignator &groupId, const std::string &name, int attributeType, double minRange, double maxRange, int index)> signal_templateAdded
Definition: DtAttributeGroupTemplateManager.h:49
The DtAttributeGroupTemplateManager object is a rooted singleton that is responsible for managing att...
Definition: DtAttributeGroupTemplateManager.h:27
std::map< std::pair< DtGlobalObjectDesignator, std::string >, DtAttributeTemplateInfo > AttributeTemplateMap
Definition: DtAttributeGroupTemplateManager.h:71
#define DL_DLL_IGCONVRLINK
Definition: dllExport.h:26
Contains makVrv::DtVirtualBaseClass class.
DtVrlinkConnection & mySimulation
Definition: DtAttributeGroupTemplateManager.h:70
AttributeTemplateMap myAttributeTemplateMap
Definition: DtAttributeGroupTemplateManager.h:72
std::map< DtGlobalObjectDesignator, int > myAttributesPerGroup
Definition: DtAttributeGroupTemplateManager.h:73
#define DT_PROTOCOL_NAMESPACE
Make VR-Vantage VRLink code export with library #ifdef DL_DLL_IGCONVRLINK #undef DL_DLL_IGCONVRLINK #...
Definition: export.h:32
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)