VR-Link API Documentation for DIS
 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-2013 VT MAK
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 
22 
24 typedef void (*DtCommentPduCb)(DtCommentPdu *pdu, void *usr);
25 
30 {
31 
32 public:
33 
34  enum { PduStaticSize=32 };
35 
36 public:
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:
68 
71 };
72 
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: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Definition: pduHeader.h:14
Definition: dataP4.h:53
class DtPduFactory:
Definition: pduFactory.h:38
Definition: disEnums.h:262
DtPduKind internalGetPduKind() const
Returns the internal PDU kind.
Definition: commentPdu.h:73
DtCommentPdu DtCommentInteraction
Definition: commentPdu.h:19
virtual DtPduKind internalGetPduKind() const =0
Returns the PDU kind associated with the derived PDU class.
DtPdu is the base class for all PDU&#39;s in VR-Link.
Definition: pdu.h:69
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtCommentPdu DtMessagePdu
Definition: commentPdu.h:21
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtPduWithData provides the base class for all of the simulation management PDU&#39;s that have fixed/vari...
Definition: pduWithData.h:23
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
virtual DtNetDataPduTail * dataSection() const =0
Returns a pointer to the data section of the PDU - the part that starts with the numberOfFixedFields ...
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
Instances of DtCommentPdu are used to send/receive comment PDUs.
Definition: commentPdu.h:29
void(* DtCommentPduCb)(DtCommentPdu *pdu, void *usr)
DtCommentPdu callback function signature.
Definition: commentPdu.h:24

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)