MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
attrHandSet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: attrHandSet.h,v $ $Revision: 1.18 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtAttributeHandleSet_H_
13 #define DtAttributeHandleSet_H_
14 
15 #include <rtiMsConfig.h>
16 #include "netHandSet.h"
17 #include "rtiApiTypes.h"
18 
19 #include <internalTypes.h>
20 
21 class DtObjectClassInfo;
22 
23 
27 #if defined(DtIFSPEC13)
29 #else
31 #endif
32 {
33 public:
34 
37 
38 #if !defined(DtIFSPEC13)
40 #endif
41 
43  virtual ~DtAttributeHandleSet();
44 
47 
50 
52 
53  virtual DtAttributeHandleStdSet& impl();
54  virtual const DtAttributeHandleStdSet& impl() const;
56 
58 #if defined(DtIFSPEC13)
59  virtual RTI::ULong size() const;
60 #else
61  virtual unsigned long size() const;
62 #endif
63 
65 #if defined(DtIFSPEC13)
66  virtual RTI::AttributeHandle getHandle(RTI::ULong i) const
67  throw (RTI::ArrayIndexOutOfBounds);
68 #else
69  virtual DtAttributeHandle getHandle(unsigned long i) const;
70 #endif
71 
73 #if defined(DtIFSPEC13)
74  virtual void add(RTI::AttributeHandle h)
75  throw (
76  RTI::ArrayIndexOutOfBounds,
77  RTI::AttributeNotDefined);
78 #else
79  virtual void add(DtAttributeHandle h);
80 #endif
81 
83  virtual void add(const DtAttributeHandleSet& handles);
84 
86 #if defined(DtIFSPEC13)
87  virtual void remove(RTI::AttributeHandle h)
88  throw (RTI::AttributeNotDefined);
89 #else
90  virtual void remove(DtAttributeHandle h);
91 #endif
92 
94  virtual void empty();
95 
97 #if defined(DtIFSPEC13)
98  virtual RTI::Boolean isEmpty() const;
99 #else
100  virtual bool isEmpty() const;
101 #endif
102  virtual bool isEmptySet() const;
103 
105 #if defined(DtIFSPEC13)
106  virtual RTI::Boolean isMember(RTI::AttributeHandle h) const;
107 #else
108  virtual bool isMember(DtAttributeHandle h) const;
109 #endif
110 
112  const DtAttributeHandleSet &) const;
114  const DtAttributeHandleSet &) const;
116  const DtAttributeHandleSet &) const;
117 
118 #if defined(DtIFSPEC13)
119  virtual RTI::ULong encodedLength() const;
120 #else
121  virtual unsigned long encodedLength() const;
122 #endif
123  virtual void encode(char *buff) const;
124 
125  virtual void print() const;
126  virtual void print(DtObjectClassInfo* fomClass) const;
127 
128 #if !defined(DtIFSPEC13)
129  virtual void fillHandleSet(RTI_API::AttributeHandleSet& attrSet) const;
130 #endif
131 
133 
136  virtual DtObjectClassHandle classHandle() const;
137  virtual void setClassHandle(DtObjectClassHandle handle);
138 
140  virtual bool active() const;
141  virtual void setActive(bool isActive);
142 public:
143 
144  static DtAttributeHandleSet* decode(const char *buff);
145 
146 protected:
147 
150  bool myActive;
151 };
152 
154 
156 {
157  return myHandles;
158 }
159 
161 {
162  return myHandles;
163 }
164 
165 #endif
virtual void fillHandleSet(RTI_API::AttributeHandleSet &attrSet) const
virtual unsigned long encodedLength() const
std::set< AttributeHandle > AttributeHandleSet
Definition: Typedefs.h:29
virtual void add(DtAttributeHandle h)
Add new value.
virtual void setClassHandle(DtObjectClassHandle handle)
virtual DtAttributeHandleSet removeSetIntersection(const DtAttributeHandleSet &) const
virtual DtAttributeHandle getHandle(unsigned long i) const
Get ith handle.
DtAttributeHandleStdSet myHandles
Definition: attrHandSet.h:148
virtual bool active() const
Set/Get active/passive status for subscribed attributes.
virtual DtAttributeHandleSet setUnion(const DtAttributeHandleSet &) const
virtual DtAttributeHandleSet setIntersection(const DtAttributeHandleSet &) const
DtAttributeHandleSet(DtObjectClassHandle handle=0)
Constructor.
virtual unsigned long size() const
Cardinality of the set.
virtual void encode(char *buff) const
DtHandle DtObjectClassHandle
Definition: internalTypes.h:48
DtAttributeHandleSet & operator=(const DtAttributeHandleSet &orig)
Assignment operator.
Defines the internal representation of attribute/parameter handle sets.
Definition: attrHandSet.h:30
virtual DtObjectClassHandle classHandle() const
Additional methods for internal RTI implementation.
virtual ~DtAttributeHandleSet()
Destructor.
bool myActive
Definition: attrHandSet.h:150
DtObjectClassHandle myClassHandle
Definition: attrHandSet.h:149
virtual void setActive(bool isActive)
virtual bool isEmpty() const
is set empty?
virtual DtAttributeHandleStdSet & impl()
Return the internal representation.
Definition: attrHandSet.h:155
DtHandle DtAttributeHandle
Definition: internalTypes.h:54
DtAttributeHandleSet DtParameterHandleSet
Definition: attrHandSet.h:153
virtual bool isMember(DtAttributeHandle h) const
Is handle h in the set?
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
std::set< DtAttributeHandle > DtAttributeHandleStdSet
Definition: internalTypes.h:55
virtual void print() const
The declaration of internal types.
virtual bool isEmptySet() const
Definition: objClassInfo.h:36
static DtAttributeHandleSet * decode(const char *buff)
virtual void empty()
Empty the Set.

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)