MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
objectClassFedNode.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 
10 
11 #pragma warning(disable : 4100)
12 
13 #include "fedNode.h"
14 #include "attributeFedNode.h"
15 
16 #ifdef DtHLA
17 #include <vl/fom.h>
18 #include <vl/objClassDesc.h>
19 #include <vl/rtiNamespace.h>
20 #endif
21 
22 #include <vlutil/vlString.h>
23 #include <list>
24 #include <map>
26 
27 
31 {
32 public:
33 
35  typedef std::list<DtObjectClassFedNode*> ObjectClassFedNodeList;
36 
38  typedef std::list<DtAttributeFedNode*> AttributeFedNodeList;
39  typedef std::map<DtString, DtAttributeFedNode*> AttributeFedNodeByName;
40 #ifdef DtHLA
41  typedef std::map<RTI::AttributeHandle, DtAttributeFedNode*> AttributeFedNodeByHandle;
42 #endif
43 
46 
49 
51  virtual ~DtObjectClassFedNode();
52 
55 
58 
60  virtual void addAttribute(DtAttributeFedNode* attribute);
61 
63  virtual void associateAttribute(DtAttributeFedNode* attribute);
64 
66  virtual void addChildObject(DtObjectClassFedNode* child);
67 
69  virtual DtObjectClassFedNode* findChildObject(const char * name) ;
70 
72  virtual DtAttributeFedNode* findAttribute(const char * attribute) const;
73 
74 #if DtHLA
75 
76  virtual DtAttributeFedNode* findAttribute(RTI::AttributeHandle attribute) const;
77 #endif
78 
80  virtual const ObjectClassFedNodeList& getChildObjects() const;
81 
83  virtual const AttributeFedNodeList& getAttributes() const;
84 
85  virtual void setDescriptor(const DtString&);
86  virtual const DtString& getDescriptor() const;
87 
88 #ifdef DtHLA
89  virtual void setParentClassHandle(RTI::ObjectClassHandle);
90  virtual RTI::ObjectClassHandle getParentClassHandle();
91 
92  virtual void setClassHandle(RTI::ObjectClassHandle);
93  virtual RTI::ObjectClassHandle getClassHandle();
94 #endif
95 
96  virtual void setSharing(const DtString&);
97  virtual const DtString& getSharing() const;
98 
99  virtual void setIdentifier(int);
100  virtual int getIdentifier();
101  virtual void setParentIdentifier(int);
102  virtual int getParentIdentifier();
103 
104 protected:
105  virtual void removeAttributes();
106 
107 protected:
111 
112 #ifdef DtHLA
114 
117  RTI::ObjectClassHandle myParentClassValue;
118  RTI::ObjectClassHandle myClassValue;
119 #endif
120 
122 
123  // 1516(E) only
125 
126  // 1.3 only
129 };
130 
131 
132 
133 

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)