MAK Data Logger API Documentation for DIS
objectHistory.h
Go to the documentation of this file.
1 /***************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ***************************************************************************/
7 #pragma once
8 
9 #pragma warning(disable : 4100)
10 #include <vlutil/vlMachineTypes.h>
11 #include "stringTree.h"
12 
13 //VR-Link Includes
14 #ifdef DtHLA_1516
15 #include "RTI/RTI1516.h"
16 #else
17 #include "RTI.hh"
18 #endif
19 #include <vl/hStateMsg.h>
20 #include <vl/genericSR.h>
21 #include <vl/rtiNamespace.h>
22 
23 
24 #include "attributeHistory.h"
25 
26 #include <map>
27 #include <string>
28 
29 #include <QtCore/QObject>
30 
31 
32 //This class contains information about a single object
34 {
35  Q_OBJECT
36 
37 public:
38 
40  DtObjectHistory(const char* name, RTI::ObjectClassHandle classHandle, DtHlaObject* obj,
41  DtDatatypeManager& dm);
42 
44  virtual ~DtObjectHistory();
45 
47  virtual const char * objectName() const;
48 
50  virtual RTI::ObjectClassHandle objectClassHandle() const;
51 
53  virtual DtHlaObject* hlaObject();
54 
56  virtual DtAttributeHistory* getAttribute(RTI::AttributeHandle handle);
57 
59  virtual DtStringTree* createStringTree(RTI::AttributeHandle handle, const DtDatatypeFedNode* omtNode);
60 
62  virtual void updateAttributes(const DtStateMsg& msg);
63 
65  virtual void updateAttributes(DtGenericStateRepository& stateRep);
66 
68 #if DtHLA_1516
69  virtual const RTI::AttributeHandleSet& updatedAttributes() const;
70 #else
71  virtual const std::set<RTI::AttributeHandle>& updatedAttributes() const;
72 #endif
73 
75  virtual void forceUpdate();
76 
77 signals:
78 
80  void updatedObjectHistory(DtObjectHistory*);
81 
82 protected:
83 
86  virtual void setAttribute(RTI::AttributeHandle handle, const void* buffer, int length);
87 
89  virtual void setAttributes(const HandleValueMap& attrValues);
90 
91 protected:
92 
94  DtString myObjectName;
95  RTI::ObjectClassHandle myClassHandle;
96  DtHlaObject* myObject;
97  std::map<RTI::AttributeHandle, DtAttributeHistory*> myAttributes;
98 #if DtHLA_1516
99  RTI::AttributeHandleSet myUpdatedAttributes;
100 #else
101  std::set<RTI::AttributeHandle> myUpdatedAttributes;
102 #endif
103 };
104 

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)