MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseHla1516Value.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 baseHla1516Value_H_
11 #define baseHla1516Value_H_
12 
13 #if DtHLA
14 #if DtHLA_1516
15 
16 #include <lgrSim/lgrSim.h>
17 #include <lgrSim/baseHlaValue.h>
19 
20 namespace MAKLogger
21 {
25  {
26  public:
28  DtBaseHla1516Value( const DtString& name, DtU32 handle,
29  const DtLgrVariableLengthData& code);
30 
32  virtual ~DtBaseHla1516Value();
33 
36 
38  DtBaseHla1516Value& operator=( const DtBaseHla1516Value& src );
39 
40 
42  inline const DtLgrVariableLengthData& encodedHandle() const;
43 
45  inline void setCode(const DtLgrVariableLengthData& code);
47  inline void setCode(const void* data, int size);
49 
51  inline const void* code() const;
52 
54  inline int codeLength() const;
55 
56  private:
57 
60  };
61 
62 
64  {
65  return myCode;
66  }
67 
69  {
70  myCode = code;
71  }
72 
73  inline void DtBaseHla1516Value::setCode(const void* data, int size)
74  {
75  myCode = DtLgrVariableLengthData(data,size);
76  }
77 
78  inline const void* DtBaseHla1516Value::code() const
79  {
80  return myCode.data();
81  }
82 
83 
84  inline int DtBaseHla1516Value::codeLength() const
85  {
86  return myCode.size();
87  }
88 
89 }
90 
91 #endif
92 #endif
93 #endif
Contains MAKLogger::DtBaseHlaValue class.
Base Hla Value object.
Definition: baseHlaValue.h:47
const DtLgrVariableLengthData & encodedHandle() const
Get the encoded handle.
Definition: baseHla1516Value.h:63
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
Contains MAKLogger::DtLgrVariableLengthData class.
unsigned int size() const
Definition: lgrVariableLengthData.h:128
void const * data() const
This pointer should not be expected to be valid past the lifetime of this object, or past the next ti...
Definition: lgrVariableLengthData.h:126
Base HLA 1516 value which includes flags and an encoded handle.
Definition: baseHla1516Value.h:24
const void * code() const
Return the encoded handle data..
Definition: baseHla1516Value.h:78
DtLgrVariableLengthData myCode
The encoded handle.
Definition: baseHla1516Value.h:59
Variable length data object compile-time compatible with the RTI 1516 implementation.
Definition: lgrVariableLengthData.h:21
void setCode(const DtLgrVariableLengthData &code)
Set the encoded handle.
Definition: baseHla1516Value.h:68
int codeLength() const
Return the encoded handle size.
Definition: baseHla1516Value.h:84

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)