VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
objectClassFedNode.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
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"
16 
17 #ifdef DtHLA
18 #ifndef DtUSE_UTILITIES_NAMESPACE
19 #include <vl/fom.h>
20 #include <vl/objClassDesc.h>
21 #include <vl/rtiNamespace.h>
22 #endif
23 #endif
24 
25 #include <vlutil/vlString.h>
26 #include <list>
27 #include <map>
28 #ifdef DtUSE_UTILITIES_NAMESPACE
29 namespace DtUSE_UTILITIES_NAMESPACE
30 {
31 #endif
33 
34 
38 {
39 public:
40 
42  typedef std::list<DtObjectClassFedNode*> ObjectClassFedNodeList;
43 
45  typedef std::list<DtAttributeFedNode*> AttributeFedNodeList;
46  typedef std::map<DtString, DtAttributeFedNode*> AttributeFedNodeByName;
47 
49  typedef std::list<DtDirectedInteractionNode*> DirectedInteractionList;
50 #ifdef DtHLA
51 #ifndef DtUSE_UTILITIES_NAMESPACE
52  typedef std::map<RTI::AttributeHandle, DtAttributeFedNode*> AttributeFedNodeByHandle;
53 #endif
54 #endif
55 
58 
61 
63  virtual ~DtObjectClassFedNode();
64 
67 
69  DtObjectClassFedNode& operator=(const DtObjectClassFedNode& rhs);
70 
72  virtual void addAttribute(DtAttributeFedNode* attribute);
73 
75  virtual void associateAttribute(DtAttributeFedNode* attribute);
76 
78  virtual void addChildObject(DtObjectClassFedNode* child);
79 
81  virtual void addDirectedInteraction(DtDirectedInteractionNode* di);
82 
84  virtual DtDirectedInteractionNode* findDirectedInteraction(const char* name) const;
85 
87  virtual const DirectedInteractionList& getDirectedInteractions() const;
88 
90  virtual DtObjectClassFedNode* findChildObject(const char * name) ;
91 
93  virtual DtAttributeFedNode* findAttribute(const char * attribute) const;
94 
95 #if DtHLA
96 #ifndef DtUSE_UTILITIES_NAMESPACE
97  virtual DtAttributeFedNode* findAttribute(RTI::AttributeHandle attribute) const;
99 #endif
100 #endif
101 
103  virtual const ObjectClassFedNodeList& getChildObjects() const;
104 
106  virtual const AttributeFedNodeList& getAttributes() const;
107 
112  virtual void sortAlphabetically();
113 
114  virtual void setDescriptor(const DtString&);
115  virtual const DtString& getDescriptor() const;
116 
117 #ifdef DtHLA
118 #ifndef DtUSE_UTILITIES_NAMESPACE
119  virtual void setParentClassHandle(RTI::ObjectClassHandle);
120  virtual RTI::ObjectClassHandle getParentClassHandle();
121 
122  virtual void setClassHandle(RTI::ObjectClassHandle);
123  virtual RTI::ObjectClassHandle getClassHandle();
124 #endif
125 #endif
126 
127  virtual void setSharing(const DtString&);
128  virtual const DtString& getSharing() const;
129 
130  virtual void setIdentifier(int);
131  virtual int getIdentifier();
132  virtual void setParentIdentifier(int);
133  virtual int getParentIdentifier();
134 
135 protected:
136  virtual void removeAttributes();
137  virtual void removeDirectedInteractions();
138 
139 protected:
144 
145 #ifdef DtHLA
146 #ifndef DtUSE_UTILITIES_NAMESPACE
147  AttributeFedNodeByHandle myAttributesByHandle;
148 
151  RTI::ObjectClassHandle myParentClassValue;
152  RTI::ObjectClassHandle myClassValue;
153 #endif
154 #endif
155 
157 
158  // 1516(E) only
160 
161  // 1.3 only
164 };
165 
166 
167 #ifdef DtUSE_UTILITIES_NAMESPACE
168 } // end of namespace DtUSE_UTILITIES_NAMESPACE
169 #endif
ObjectClassFedNodeList myChildObjects
Definition: objectClassFedNode.h:142
Represents an attribute inside a object class.
Definition: attributeFedNode.h:33
Contains the DtString class declaration.
std::map< DtString, DtAttributeFedNode * > AttributeFedNodeByName
Definition: objectClassFedNode.h:46
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
A Datatype Representation is a class that can take a group of bytes and display them in a certain typ...
Definition: datatypeRep.h:24
Represents an HLA 4 (IEEE 1516-2025) &lt;directedInteraction&gt; reference attached to an object class...
Definition: directedInteractionNode.h:30
This file declares DtFom.
DtString mySharing
Definition: objectClassFedNode.h:159
Represents a node in a fed tree.
Definition: fedNode.h:23
defines an object class inside our Fed Tree
Definition: objectClassFedNode.h:37
DirectedInteractionList myDirectedInteractions
Definition: objectClassFedNode.h:143
std::list< DtDirectedInteractionNode * > DirectedInteractionList
A list of HLA4 directed interaction node pointers.
Definition: objectClassFedNode.h:49
AttributeFedNodeByName myAttributesByName
Definition: objectClassFedNode.h:141
DtString myDescriptor
Definition: objectClassFedNode.h:156
std::list< DtObjectClassFedNode * > ObjectClassFedNodeList
A list of DtObjectClassFedNode pointers.
Definition: objectClassFedNode.h:42
Instances of DtString are used to represent strings.
Definition: vlString.h:38
AttributeFedNodeList myAttributes
Definition: objectClassFedNode.h:140
std::list< DtAttributeFedNode * > AttributeFedNodeList
A list of AttributeFedNode pointers.
Definition: objectClassFedNode.h:45
int myParentIdentifier
Definition: objectClassFedNode.h:163
int myIdentifier
Definition: objectClassFedNode.h:162

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)