MAK RTIspy API Documentation for HLA Evolved
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 "internalTypes.h"
18 
19 class DtObjectClassInfo;
20 
21 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
22 #include "RTI/Typedefs.h"
23 #include "RTI/Handle.h"
24 #else
25 #ifdef DtIFSPEC13DLC
26 #include "RTI13.h"
27 #define RTI rti13
28 #else
29 #include "RTI.hh"
30 #endif
31 #endif
32 
33 
34 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
36 #else
38 #endif
39 {
40 public:
41 
44 
45 #ifdef DtIFSPEC1516
47  DtObjectClassHandle handle=0);
48 #elif defined(DtIFSPEC1516E)
50  DtObjectClassHandle handle=0);
51 #endif
52 
54  virtual ~DtAttributeHandleSet();
55 
58 
60  DtAttributeHandleSet& operator=(const DtAttributeHandleSet& orig);
61 
63 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
64  virtual unsigned long size() const;
65 #else
66  virtual RTI::ULong size() const;
67 #endif
68 
70 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
71  virtual DtAttributeHandle getHandle(unsigned long i) const;
72 #else
74  throw (
75  RTI::ArrayIndexOutOfBounds);
76 #endif
77 
79 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
80  virtual void add(DtAttributeHandle h);
81 #else
82  virtual void add(RTI::AttributeHandle h)
83  throw (
84  RTI::ArrayIndexOutOfBounds,
85  RTI::AttributeNotDefined);
86 #endif
87 
89 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
90  virtual void remove(DtAttributeHandle h);
91 #else
92  virtual void remove(RTI::AttributeHandle h)
93  throw (
94  RTI::AttributeNotDefined);
95 #endif
96 
98  virtual void empty();
99 
101 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
102  virtual bool isEmpty() const;
103 #else
104  virtual RTI::Boolean isEmpty() const;
105 #endif
106  virtual bool isEmptySet() const;
107 
109 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
110  virtual bool isMember(DtAttributeHandle h) const;
111 #else
112  virtual RTI::Boolean isMember(RTI::AttributeHandle h) const;
113 #endif
114 
115  virtual DtAttributeHandleSet setUnion(
116  const DtAttributeHandleSet &) const;
117  virtual DtAttributeHandleSet setIntersection(
118  const DtAttributeHandleSet &) const;
119  virtual DtAttributeHandleSet removeSetIntersection(
120  const DtAttributeHandleSet &) const;
121 
122 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
123  virtual unsigned long encodedLength() const;
124 #else
125  virtual RTI::ULong encodedLength() const;
126 #endif
127  virtual void encode(char *buff) const;
128 
129  virtual void print() const;
130  virtual void print(DtObjectClassInfo* fomClass) const;
131 
132 #ifdef DtIFSPEC1516
133  virtual void fillHandleSet(rti1516::AttributeHandleSet& attrSet) const;
134 #elif defined(DtIFSPEC1516E)
135  virtual void fillHandleSet(rti1516e::AttributeHandleSet& attrSet) const;
136 #endif
137 
139 
142  virtual DtObjectClassHandle classHandle() const;
143  virtual void setClassHandle(DtObjectClassHandle handle);
144 
146  virtual bool active() const;
147  virtual void setActive(bool isActive);
148 public:
149 
150  static DtAttributeHandleSet* decode(const char *buff);
151 
152 protected:
153 
154  unsigned short mySize;
156  bool myActive;
157  MAKRti::DtU32 myWords[DtNumberAttributeWords];
158 };
159 
161 
162 #endif

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)