MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseIntDesc1516.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef baseIntDesc1516_H_
11 #define baseIntDesc1516_H_
12 
13 #if DtHLA
14 #if DtHLA_1516
15 
16 #include <lgrSim/lgrSim.h>
17 
18 #include "baseHla1516Class.h"
19 #include "baseParam.h"
20 
21 #include <vl/rtiCompatibility.h>
22 #include <vl/rtiNamespace.h>
23 
24 class DtString;
25 class DtInterClassDesc;
26 
27 namespace MAKLogger
28 {
29  class DtLgrOnlineFomDesc;
30 
33  class DT_DLL_LGRSIM DtBaseInterClassDesc : public DtBaseHla1516Class<DtBaseParamDesc>
34  {
35  public:
38  DtBaseInterClassDesc( const DtString& className,
39  DtBaseInterClassDesc* baseClass, DtLgrHlaHandle handle,
40  const void* handCode, int codeSize );
41 
44  DtBaseInterClassDesc( const DtString& className,
45  const DtString& baseClassName, DtLgrHlaHandle hand,
46  const void* handCode, int codeSize );
47 
49  DtBaseInterClassDesc( char*& bfr, int& bsz );
50 
52  virtual ~DtBaseInterClassDesc();
53 
56 
58  DtBaseInterClassDesc& operator=( const DtBaseInterClassDesc& src );
59 
61  RTI::InteractionClassHandle rtiHandle(const DtLgrOnlineFomDesc& fomDesc) const;
62 
64  inline bool isBaseClass() const;
65 
67  inline void setIsBaseClass(bool);
68 
70  inline bool isSubscribedTo() const;
71 
73  inline void setIsSubscribedTo( bool onOff );
74 
76  inline bool isFilteredClass() const;
77 
79  inline void setIsFilteredClass( bool onOff );
80 
83  inline DtLgrFomTransportType transportType() const;
84 
86  inline void setTransportType(DtLgrFomTransportType type);
87 
90  inline DtLgrFomOrderType orderType() const;
91 
93  inline void setOrderType(DtLgrFomOrderType type);
94 
95 
107  int serialize( char*& bfr, int& bsz ) const;
108 
109  protected:
111  void resetAll();
112  int unserializeParameters( char* bfr, int bsz, int num );
113 
114  };
115 
117  {
118  return ( ( flags() & DtLgrFomDesc_IsBaseClass ) != 0 );
119  }
120 
121  inline void DtBaseInterClassDesc::setIsBaseClass(bool isBaseClass)
122  {
123  if(isBaseClass)
124  {
126  }
127  else
128  {
130  }
131  }
132 
133 
135  {
136  return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
137  }
138 
139 
140  inline void DtBaseInterClassDesc::setIsSubscribedTo( bool onOff )
141  {
142  if(onOff)
143  {
145  }
146  else
147  {
149  }
150  }
151 
152 
154  {
155  return ( ( flags() & DtLgrFomDesc_IsFiltered ) != 0 );
156  }
157 
158 
160  {
161  if(onOff)
162  {
164  }
165  else
166  {
168  }
169  }
170 
171 
173  {
174  if ( ( flags() & DtLgrFomDesc_Reliable ) != 0 )
175  {
176  return DtLgr_Reliable;
177  }
178  else
179  {
180  return DtLgr_BestEffort;
181  }
182  }
183 
185  {
186  if(type == DtLgr_Reliable)
187  {
189  }
190  else
191  {
193  }
194  }
195 
197  {
198  if ( ( flags() & DtLgrFomDesc_TimeStamp ) != 0 )
199  {
200  return DtLgr_TimeStamp;
201  }
202  else
203  {
204  return DtLgr_Receive;
205  }
206  }
207 
209  {
210  if(type == DtLgr_TimeStamp)
211  {
213  }
214  else
215  {
217  }
218  }
219 
220 }
221 
222 #endif
223 #endif
224 
225 #endif
Definition: baseHlaValue.h:33
DtU32 flags() const
Get the encoded flags.
Definition: baseHlaValue.h:89
void setIsBaseClass(bool)
Set whether this class is a base class.
Definition: baseIntDesc1516.h:121
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
DtU32 DtLgrHlaHandle
Logger Psuedo Handle type.
Definition: hlaTimeStampedAttr.h:22
Definition: baseHlaValue.h:27
void setIsFilteredClass(bool onOff)
Toggle on/off the filtering of this interaction class.
Definition: baseIntDesc1516.h:159
DtLgrFomTransportType transportType() const
Returns the transport type (i.e., &quot;best effort&quot;, &quot;reliable&quot;) for this interaction class...
Definition: baseIntDesc1516.h:172
bool isSubscribedTo() const
Is this interaction class subscribed to.
Definition: baseIntDesc1516.h:134
void setTransportType(DtLgrFomTransportType type)
Sets the transport type.
Definition: baseIntDesc1516.h:184
Definition: baseHlaValue.h:37
Contains MAKLogger::DtBaseHla1516Class subclass of MAKLogger::DtBaseHlaClass and MAKLogger::DtBaseHla...
An online fom description that has access to the RTI Ambassidor.
Definition: onlineFomDesc.h:34
bool isBaseClass() const
Is this interaction class a base class for other interaction classes.
Definition: baseIntDesc1516.h:116
Definition: baseHlaValue.h:20
DtLgrFomTransportType
Definition: baseHlaValue.h:18
Pulls in the corret DtBaseParam.
void setIsSubscribedTo(bool onOff)
Toggle on/off the subscription to this interaction class.
Definition: baseIntDesc1516.h:140
void setOrderType(DtLgrFomOrderType type)
Sets the ordertype.
Definition: baseIntDesc1516.h:208
Definition: baseHlaValue.h:39
Definition: baseHlaValue.h:21
void setFlags(DtU32)
Set the encoded flags.
Definition: baseHlaValue.h:94
Definition: baseHlaValue.h:38
Definition: baseHlaValue.h:26
Represents a HLA 1516 Fom Interaction class descriptions.
Definition: baseIntDesc1516.h:33
DtLgrFomOrderType
Definition: baseHlaValue.h:24
Base class representing any HLA 1516 class.
Definition: baseHla1516Class.h:25
Definition: baseHlaValue.h:35
bool isFilteredClass() const
Is this interaction class filtered out.
Definition: baseIntDesc1516.h:153
DtLgrFomOrderType orderType() const
Returns the order type (i.e., &quot;receive order&quot;, &quot;time stamp order&quot;) for this interaction class...
Definition: baseIntDesc1516.h:196

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)