VR-Link API Documentation for HLA 1.3
createEntityPdu.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 "simanPdu.h"
16 
17 
19 
20 class DT_DLL_VL DtCreateEntityPdu;
21 typedef DtCreateEntityPdu DtCreateEntityInteraction;
22 
24 typedef void (*DtCreateEntityPduCb)(DtCreateEntityPdu *pdu, void *usr);
25 
29 class DT_DLL_VL DtCreateEntityPdu : public DtSimanPdu
30 {
31 public:
32 
33  enum { PduStaticSize=28 };
34 
35 public:
37  DtCreateEntityPdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
39  DtCreateEntityPdu(const DtNetCreateEntityPdu *initial,
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
41 
42  DtCreateEntityPdu(const DtEntityIdentifier &to,
43  const DtEntityIdentifier &from,
45 
48  static DtPdu *create(const DtNetPacket *initial,
49  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
50 
53  static void addCallback(DtExerciseConn *conn,
54  DtCreateEntityPduCb cb, void *usr);
55  static void removeCallback(DtExerciseConn *conn,
56  DtCreateEntityPduCb cb, void *usr);
57 
59  int requestId() const;
60  void setRequestId(int id);
61 
63  virtual void printData() const;
64 
66  virtual void printDataToStream(std::ostream& stream) const;
67 
68 
69 protected:
71  DtPduKind internalGetPduKind() const {return DtCreateEntityPduKind;}
72 
73 };
74 
75 #endif

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)