MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
legacyLcPdu.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #ifndef DtLgcyLgrControlPdu_H_
7 #define DtLgcyLgrControlPdu_H_
8 
11 #include <vlutil/vlMachineTypes.h>
12 #include <vlutil/vlPrintUtil.h>
13 #include <matrix/LibMatrix.h>
14 #include <matrix/vlMath.h>
15 #include <vlpi/parseEnum.h>
16 #include <vl/interaction.h>
17 #include <vl/exerciseConn.h>
18 #include <vl/hostStructs.h>
19 #include <vl/pdu.h>
20 
21 
23 
26 {
33 };
34 
35 
38 {
43 };
44 
45 
48 {
53 };
54 
55 
57 {
60 };
61 
62 
65 {
69 };
70 
71 
74 {
83 };
84 
86 {
88 };
89 
90 
91 #if DtDIS
92 
95 
97 typedef void (*DtLgcyLgrControlInteractionCb)
98  ( DtLgcyLgrControlInteraction* inter, void* usr );
99 
100 #endif
101 
105 #if DtHLA
107 #else
109 #endif
110 {
111 public:
112 
114  DtLgcyLgrControlPdu( DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
115 
118  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0 );
119 
121  virtual ~DtLgcyLgrControlPdu();
122 
125 
128 
130  static DtPdu* create( const DtNetPacket* initial,
131  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0 );
132 
134  static DtLgcyLgrControlPdu* create( DtLgrCommand command );
135 
136 #if DtDIS
137  static void addCallback( DtExerciseConn* conn,
139  DtLgcyLgrControlInteractionCb cb, void* usr );
140  static void removeCallback( DtExerciseConn* conn,
141  DtLgcyLgrControlInteractionCb cb, void* usr );
142 #endif
143 
145  const DtGlobalObjectDesignator& receiverId() const;
146  virtual void setReceiverId( const DtGlobalObjectDesignator& id );
147 
149  virtual const DtGlobalObjectDesignator& senderId() const;
150  virtual void setSenderId( const DtGlobalObjectDesignator& id );
151 
152 
154  DtLgrCommand lgrCommand() const;
155 
158 
160  virtual void printData() const;
161 
162 public:
164  static const char* lgrModeEnum2string( DtLgcyLgrMode md );
166  static const char* lgrFilePosEnum2string( DtLgcyLgrFilePosition pos );
168  static const char* lgrStateFlag2string( DtLgcyLgrCtrlFlagStates flg );
169 
170 protected:
172  DtPduKind internalGetPduKind() const { return DtLgrControlPduKind; }
173 
175  void setLgrCommand( DtLgrCommand com );
176 
177 private:
179  DtGlobalObjectDesignator mySenderId;
180  DtGlobalObjectDesignator myReceiverId;
181 };
182 
183 #endif
Definition: legacyLcPdu.h:27
void setLgrCommand(DtLgrCommand com)
Set is done by constructing the proper subclass.
Definition: legacyLcPdu.h:49
Definition: legacyLcPdu.h:31
DtLgcyLgrCommandExt
Definition: legacyLcPdu.h:85
DtNetLgcyLgrControlParams * defaultParams() const
Data place holder.
Definition: legacyLcPdu.h:51
Definition: legacyLcPdu.h:42
Definition: legacyLcPdu.h:67
DtLgcyLgrDirection
Play forwards or backwards when in LGR_PLAY mode.
Definition: legacyLcPdu.h:37
static const char * lgrStateFlag2string(DtLgcyLgrCtrlFlagStates flg)
The name (as a string) of a &#39;DtLgcyLgrCtrlFlagStates&#39;-type enum (from value)
Definition: legacyLgrControlP.h:58
#define DT_DLL_LGCYLGRCNTRL
Include vlconfig.h to get relivant platform info like if we need declspec stuff or not...
Definition: legacyLoggerControlDefines.h:31
DtPduKind internalGetPduKind() const
Identity for use by toolkit.
Definition: legacyLcPdu.h:172
const DtGlobalObjectDesignator & receiverId() const
Get/set Object Identifier of intended recipient (logger).
Definition: legacyLcPdu.h:76
Definition: legacyLcPdu.h:41
Instances of DtLgcyLgrControlPdu are a family of messages used to control a remote instance of the MA...
Definition: legacyLcPdu.h:106
Definition: legacyLgrControlP.h:45
static DtPdu * create(const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0)
Create a PDU representation from a network packet.
Definition: legacyLcPdu.h:68
Instances of DtLgcyLgrControlInteraction are used to represent LgrControl Interactions in HLA...
Definition: legacyHlcInter.h:26
Definition: legacyLcPdu.h:52
DtLgcyLgrMode
Definition: legacyLcPdu.h:25
Definition: legacyLcPdu.h:32
virtual void printData() const
Print contents.
virtual void setReceiverId(const DtGlobalObjectDesignator &id)
Definition: legacyLcPdu.h:78
DtLgcyLgrCtrlFlagStates
Controlling runtime-settable flags and options of the Logger.
Definition: legacyLcPdu.h:73
Definition: legacyLcPdu.h:77
DtLgcyLgrStyle
Definition: legacyLcPdu.h:56
DtLgcyLgrControlPdu & operator=(const DtLgcyLgrControlPdu &src)
assignment operator
DtGlobalObjectDesignator myReceiverId
Definition: legacyLcPdu.h:180
Definition: legacyLcPdu.h:75
DtLgcyLgrProcess
Receiving application may filter lcPdu based on this start-up flag.
Definition: legacyLcPdu.h:64
Definition: legacyLcPdu.h:66
Definition: legacyLcPdu.h:28
DtLgcyLgrControlPdu(DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
(default) constructor
class DT_DLL_MATREX_TSPI_FOM_MAP DtInteraction
Definition: matrexTspiTagModifier.h:20
Definition: legacyLcPdu.h:79
Definition: legacyLcPdu.h:29
Definition: legacyLcPdu.h:59
Definition: legacyLcPdu.h:58
Definition: legacyLcPdu.h:50
virtual ~DtLgcyLgrControlPdu()
destructor
static const char * lgrFilePosEnum2string(DtLgcyLgrFilePosition pos)
The name (as a string) of a &#39;DtLgcyLgrFilePosition&#39;-type enum (from value)
Definition: legacyLcPdu.h:82
Definition: legacyLcPdu.h:39
DtLgcyLgrFilePosition
Location status.
Definition: legacyLcPdu.h:47
DtGlobalObjectDesignator mySenderId
Parameter.
Definition: legacyLcPdu.h:179
Definition: legacyLcPdu.h:81
Definition: legacyLcPdu.h:40
static const char * lgrModeEnum2string(DtLgcyLgrMode md)
The name (as a string) of a &#39;DtLgcyLgrMode&#39;-type enum (from value)
Definition: legacyLcPdu.h:80
DtLgrCommand lgrCommand() const
Get message-type for proper casting to a subclass.
Definition: legacyLcPdu.h:87
virtual const DtGlobalObjectDesignator & senderId() const
Get/set Object Identifier of sender, if applicable.
virtual void setSenderId(const DtGlobalObjectDesignator &id)
Definition: legacyLcPdu.h:30
void(* DtLgcyLgrControlInteractionCb)(DtLgcyLgrControlInteraction *inter, void *usr)
LgrControl interaction callback function signature.
Definition: legacyHlcInter.h:20

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)