MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pduDescriptor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef pduDescriptor_H_
10 #define pduDescriptor_H_
11 
12 #if DtDIS
13 
14 #include <lgrSim/lgrSim.h>
15 #include <vlutil/vlString.h>
16 
17 namespace MAKLogger
18 {
19  class DtDisDescriptor;
20 
24  {
25  public:
27  DtPduDescriptor( DtDisDescriptor* disObj, const DtString& name, DtU32 kind,
28  int _enIdOff, int _typeOff );
29 
31  DtPduDescriptor( DtDisDescriptor* disObj, const char* bfr, int bsz,
32  int& pduSize );
33 
35  virtual ~DtPduDescriptor();
36 
38  DtPduDescriptor( const DtPduDescriptor& src );
39 
41  DtPduDescriptor& operator=( const DtPduDescriptor& src );
42 
43 
44  public:
46  inline const DtString& name() const;
47 
49  inline DtU32 kind() const;
50 
52  inline void setEntityIdOffset( int off );
53  inline int entityIdOffset() const;
54 
56  inline void setEntityTypeOffset( int off );
57  inline int entityTypeOffset() const;
58 
60  inline void setIsFilteredPdu( bool onOff );
62  inline bool isFilteredPdu() const;
63 
74  int serialize( char* bfr, int bsz );
75 
76  protected:
77  DtU32 myKind;
79  DtString myName;
84  };
85 
86 
87  inline const DtString& DtPduDescriptor::name() const
88  {
89  return myName;
90  }
91 
92 
93  inline DtU32 DtPduDescriptor::kind() const
94  {
95  return myKind;
96  }
97 
98 
99  inline void DtPduDescriptor::setEntityIdOffset( int off )
100  {
101  myEntityIdOff = off;
102  }
103 
104 
106  {
107  return myEntityIdOff;
108  }
109 
110 
112  {
113  myEntityTypeOff = off;
114  }
115 
116 
118  {
119  return myEntityTypeOff;
120  }
121 
122 
123  inline void DtPduDescriptor::setIsFilteredPdu( bool onOff )
124  {
125  myFilteredFlag = onOff;
126  }
127 
128 
129  inline bool DtPduDescriptor::isFilteredPdu() const
130  {
131  return myFilteredFlag;
132  }
133 
134 }
135 
136 #endif
137 #endif
DtU32 myKind
Definition: pduDescriptor.h:77
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
bool isFilteredPdu() const
Is this object class filtered out.
Definition: pduDescriptor.h:129
void setIsFilteredPdu(bool onOff)
Toggle on/off the filtering of this object class.
Definition: pduDescriptor.h:123
bool myFilteredFlag
Definition: pduDescriptor.h:78
DtString myName
Definition: pduDescriptor.h:79
DtU32 kind() const
Get the Pdu kind enumerator.
Definition: pduDescriptor.h:93
DtDisDescriptor * myDisObject
Definition: pduDescriptor.h:83
const DtString & name() const
Get the Pdu name.
Definition: pduDescriptor.h:87
A runtime description of a DIS pdu.
Definition: pduDescriptor.h:23
void setEntityTypeOffset(int off)
Set/Get the offset to the EntityType field (within the Pdu layout)
Definition: pduDescriptor.h:111
int entityTypeOffset() const
Definition: pduDescriptor.h:117
int myNameIndex
Definition: pduDescriptor.h:80
Instances of DtDisDescriptor provide mappings between Pdu descriptors and PduKind enumerators in DIS...
Definition: disDescriptor.h:55
int myEntityIdOff
Definition: pduDescriptor.h:81
int myEntityTypeOff
Definition: pduDescriptor.h:82
void setEntityIdOffset(int off)
Set/Get the offset to the EntityId field (within the Pdu layout)
Definition: pduDescriptor.h:99
int entityIdOffset() const
Definition: pduDescriptor.h:105

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)