MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseObjDesc1516.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef baseObjDesc1516_H_
11 #define baseObjDesc1516_H_
12 
13 #if DtHLA
14 #if DtHLA_1516
15 
16 #include <lgrSim/lgrSim.h>
17 #include <lgrSim/lgrHlaAttribute.h>
19 #include <vlutil/vlString.h>
20 
21 #include "baseHla1516Class.h"
22 #include <lgrSim/baseAttr1516.h>
23 
24 class DtObjClassDesc;
25 
26 namespace MAKLogger
27 {
28 
29  class DtLgrOnlineFomDesc;
30 
33  class DT_DLL_LGRSIM DtBaseObjClassDesc : public DtBaseHla1516Class<DtBaseAttrDesc>
34  {
35 
36  public:
39  DtBaseObjClassDesc( const DtString& className,
40  DtBaseObjClassDesc* baseClass, unsigned int hand,
41  const void* handCode, int codeSize );
43 
44  DtBaseObjClassDesc( const DtString& className,
45  const DtString& baseClassName, unsigned int hand,
46  const void* handCode, int codeSize );
47 
49  DtBaseObjClassDesc( char*& bfr, int& bsz );
50 
52  virtual ~DtBaseObjClassDesc();
53 
56 
58  DtBaseObjClassDesc& operator=( const DtBaseObjClassDesc& src );
59 
60  public:
61 
63  RTI::ObjectClassHandle rtiHandle(const DtLgrOnlineFomDesc& fomDesc) const;
64 
66  inline bool isBaseClass() const;
67 
69  inline void setIsBaseClass(bool isBaseClass);
70 
72  inline bool isSubscribedTo() const;
74  inline void setIsSubscribedTo( bool onOff );
75 
77  inline bool isFilteredClass() const;
79  inline void setIsFilteredClass( bool onOff );
80 
81 
92  int serialize( char*& bfr, int& bsz ) const;
93 
94  protected:
96  void resetAll();
97 
98  //int initNames( const char* ownName, const char* baseName );
99  //void initCode( const char* handCode, int codeSize );
100 
101  int unserializeAttributes( char* bfr, int bsz, int num );
102 
103  };
104 
105  inline void DtBaseObjClassDesc::setIsBaseClass(bool isBaseClass)
106  {
107  if(isBaseClass)
108  {
110  }
111  else
112  {
114  }
115  }
116 
118  {
119  return ( ( flags() & DtLgrFomDesc_IsBaseClass ) != 0 );
120  }
121 
122 
124  {
125  return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
126  }
127 
128 
129  inline void DtBaseObjClassDesc::setIsSubscribedTo( bool onOff )
130  {
131  if ( onOff )
132  {
134 
135  }
136  else
137  {
139  }
140  }
141 
143  {
144  return ( ( flags() & DtLgrFomDesc_IsFiltered ) != 0 );
145  }
146 
147  inline void DtBaseObjClassDesc::setIsFilteredClass( bool onOff )
148  {
149  if ( onOff )
150  {
152  }
153  else
154  {
156  }
157  }
158 
159 }
160 
161 #endif
162 #endif
163 #endif
164 
165 

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)