VR-Link API Documentation for DIS
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 #pragma warning(disable : 4100)
10 
11 #include "fedNode.h"
12 #include "attributeFedNode.h"
13 
14 #include <vl/fom.h>
15 #include <vl/objClassDesc.h>
16 #include <vlutil/vlString.h>
17 #include <vl/rtiNamespace.h>
18 #include <list>
19 #include <map>
20 
22 
23 
27 {
28 public:
29 
31  typedef std::list<DtObjectClassFedNode*> ObjectClassFedNodeList;
32 
34  typedef std::list<DtAttributeFedNode*> AttributeFedNodeList;
35  typedef std::map<DtString, DtAttributeFedNode*> AttributeFedNodeByName;
36 #ifdef DtHLA
37  typedef std::map<RTI::AttributeHandle, DtAttributeFedNode*> AttributeFedNodeByHandle;
38 #endif
39 
42 
45 
47  virtual ~DtObjectClassFedNode();
48 
51 
54 
56  virtual void addAttribute(DtAttributeFedNode* attribute);
57 
59  virtual void associateAttribute(DtAttributeFedNode* attribute);
60 
62  virtual void addChildObject(DtObjectClassFedNode* child);
63 
65  virtual DtObjectClassFedNode* findChildObject(const char * name) ;
66 
68  virtual DtAttributeFedNode* findAttribute(const char * attribute) const;
69 
70 #if DtHLA
71 
72  virtual DtAttributeFedNode* findAttribute(RTI::AttributeHandle attribute) const;
73 #endif
74 
76  virtual const ObjectClassFedNodeList& getChildObjects() const;
77 
79  virtual const AttributeFedNodeList& getAttributes() const;
80 
81  virtual void setDescriptor(const DtString&);
82  virtual const DtString& getDescriptor();
83 
84 #ifdef DtHLA
85  virtual void setParentClassHandle(RTI::ObjectClassHandle);
86  virtual RTI::ObjectClassHandle getParentClassHandle();
87 
88  virtual void setClassHandle(RTI::ObjectClassHandle);
89  virtual RTI::ObjectClassHandle getClassHandle();
90 #endif
91 
92  virtual void setSharing(const DtString&);
93  virtual const DtString& getSharing();
94 
95  virtual void setIdentifier(int);
96  virtual int getIdentifier();
97  virtual void setParentIdentifier(int);
98  virtual int getParentIdentifier();
99 
100 protected:
101  virtual void removeAttributes();
102 
103 protected:
107 
108 #ifdef DtHLA
109  AttributeFedNodeByHandle myAttributesByHandle;
110 
113  RTI::ObjectClassHandle myParentClassValue;
114  RTI::ObjectClassHandle myClassValue;
115 #endif
116 
118 
119  // 1516(E) only
121 
122  // 1.3 only
125 };
126 
127 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)