VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
22 
24 typedef void (*DtCreateEntityPduCb)(DtCreateEntityPdu *pdu, void *usr);
25 
30 {
31 public:
32 
33  enum { PduStaticSize=28 };
34 
35 public:
38 
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
41 
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:
72 
73 };
74 
75 #endif

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)