VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
commentPdu.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 #pragma once
11 
12 #if DtDIS
13 
14 #include "hostStructs.h"
15 #include "pduWithData.h"
16 #include <vlpi/idTypeMap.h>
17 
19 class DT_DLL_VL DtCommentPdu;
20 typedef DtCommentPdu DtCommentInteraction;
21 typedef DtCommentPdu DtMessagePdu;
22 
24 typedef void (*DtCommentPduCb)(DtCommentPdu *pdu, void *usr);
25 
29 class DT_DLL_VL DtCommentPdu : public DtPduWithData
30 {
31 
32 public:
33 
34  enum { PduStaticSize=32 };
35 
36 public:
38  DtCommentPdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39  DtCommentPdu(const DtNetCommentPdu *initial,
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
41  DtCommentPdu(const DtEntityIdentifier &sender,
42  const DtEntityIdentifier &receiver,
43  const char *message,
45 
48  virtual void setComment(const char *message, int size);
49  virtual const char *comment() const;
50 
51 public:
54  static DtPdu *create(const DtNetPacket *initial,
55  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
56 
59  static void addCallback(DtExerciseConn *conn,
60  DtCommentPduCb cb, void *usr);
61  static void removeCallback(DtExerciseConn *conn,
62  DtCommentPduCb cb, void *usr);
63 
64 
65 protected:
67  DtPduKind internalGetPduKind() const;
68 
70  DtNetDataPduTail *dataSection() const;
71 };
72 
73 inline DtPduKind DtCommentPdu::internalGetPduKind() const
74 {
75  return DtCommentPduKind;
76 }
77 
78 #endif
Definition: simanP4.h:97
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Definition: pduHeader.h:14
Definition: dataP4.h:53
Definition: disEnums.h:262
DtPdu is the base class for all PDU&#39;s in VR-Link.
Definition: pdu.h:69
Instances of DtCommentInteraction are used to represent Comment Interactions in the RPR FOM...
Definition: commentInteractionHLA.h:37
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)