VR-Link API Documentation for DIS
commentPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef DtCommentPdu_H_
7 #define DtCommentPdu_H_
8 
9 
10 
11 
12 #if DtDIS
13 
14 #include "hostStructs.h"
15 #include "pduWithData.h"
16 #include <vlpi/datumIdType.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,
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,
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
79 #endif
80 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)