MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseObjDesc13.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef baseObjDesc13_H_
10 #define baseObjDesc13_H_
11 
12 #if DtHLA & !DtHLA_1516
13 
14 #include <lgrSim/lgrSim.h>
15 
16 #include <lgrSim/baseAttr13.h>
17 #include "baseHlaClass.h"
18 #include <lgrSim/lgrHlaAttribute.h>
20 
21 #include <vlutil/vlString.h>
22 
23 class DtObjClassDesc;
24 
25 namespace MAKLogger
26 {
27 
28  class DtLgrOnlineFomDesc;
29 
32  class DT_DLL_LGRSIM DtBaseObjClassDesc : public DtBaseHlaClass<DtBaseAttrDesc>
33  {
34 
35  public:
38  DtBaseObjClassDesc( const DtString& className,
39  DtBaseObjClassDesc* baseClass, unsigned int hand);
41 
42  DtBaseObjClassDesc( const DtString& className,
43  const DtString& baseClassName, unsigned int hand);
44 
46  DtBaseObjClassDesc( char*& bfr, int& bsz );
47 
49  virtual ~DtBaseObjClassDesc();
50 
52  DtBaseObjClassDesc( const DtBaseObjClassDesc& src );
53 
55  DtBaseObjClassDesc& operator=( const DtBaseObjClassDesc& src );
56 
57  public:
58 
60  RTI::ObjectClassHandle rtiHandle(const DtLgrOnlineFomDesc& fomDesc) const;
61 
63  inline bool isBaseClass() const;
64 
66  inline void setIsBaseClass(bool isBaseClass);
67 
69  inline bool isSubscribedTo() const;
71  inline void setIsSubscribedTo( bool onOff );
72 
74  inline bool isFilteredClass() const;
76  inline void setIsFilteredClass( bool onOff );
77 
88  int serialize( char*& bfr, int& bsz ) const;
89 
90  protected:
92  void resetAll();
93 
94  int unserializeAttributes( char* bfr, int bsz, int num );
95 
96  };
97 
98  inline void DtBaseObjClassDesc::setIsBaseClass(bool isBaseClass)
99  {
100  if(isBaseClass)
101  {
103  }
104  else
105  {
107  }
108  }
109 
110  inline bool DtBaseObjClassDesc::isBaseClass() const
111  {
112  return ( ( flags() & DtLgrFomDesc_IsBaseClass ) != 0 );
113  }
114 
115 
116  inline bool DtBaseObjClassDesc::isSubscribedTo() const
117  {
118  return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
119  }
120 
121 
122  inline void DtBaseObjClassDesc::setIsSubscribedTo( bool onOff )
123  {
124  if ( onOff )
125  {
127 
128  }
129  else
130  {
132  }
133  }
134 
135  inline bool DtBaseObjClassDesc::isFilteredClass() const
136  {
137  return ( ( flags() & DtLgrFomDesc_IsFiltered ) != 0 );
138  }
139 
140  inline void DtBaseObjClassDesc::setIsFilteredClass( bool onOff )
141  {
142  if ( onOff )
143  {
145  }
146  else
147  {
149  }
150  }
151 
152 }
153 
154 #endif
155 #endif
DtU32 flags() const
Get the encoded flags.
Definition: baseHlaValue.h:89
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
void setIsSubscribedTo(bool onOff)
Toggle on/off the subscription to this object class.
Definition: baseObjDesc1516.h:129
Contains MAKLogger::DtBaseHlaClass subclass of MAKLogger::DtBaseHlaValue.
bool isBaseClass() const
Is this object class a base class for other object classes.
Definition: baseObjDesc1516.h:117
Definition: baseHlaValue.h:37
Contains MAKLogger::DtLgrVariableLengthData class.
Contains MAKLogger::DtLgrHlaHandle typedef and MAKLogger::DtLgrValueReference and MAKLogger::DtLgrVal...
Definition: baseHlaValue.h:39
void setFlags(DtU32)
Set the encoded flags.
Definition: baseHlaValue.h:94
Definition: baseHlaValue.h:38
bool isSubscribedTo() const
Is this object class subscribed to.
Definition: baseObjDesc1516.h:123
void setIsFilteredClass(bool onOff)
Toggle on/off the filtering of this object class.
Definition: baseObjDesc1516.h:147
bool isFilteredClass() const
Is this object class filtered out.
Definition: baseObjDesc1516.h:142
Contains MAKLogger::DtBaseAttrDesc class.
void setIsBaseClass(bool isBaseClass)
Set whether is a base class.
Definition: baseObjDesc1516.h:105

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)