VR-Link API Documentation for HLA 1516
createPdu.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #ifndef DtCreateEntityPdu_H_
00008 #define DtCreateEntityPdu_H_
00009  
00013 
00014 #if DtDIS
00015 
00016 #include "hostStructs.h"
00017 #include "simanPdu.h"
00018 
00019 
00020 class DT_DLL_VL DtExerciseConn;
00021 
00022 class DT_DLL_VL DtCreateEntityPdu;
00023 typedef DtCreateEntityPdu DtCreateEntityInteraction;
00024 
00026 typedef void (*DtCreateEntityPduCb)(DtCreateEntityPdu *pdu, void *usr);
00027 
00031 class DT_DLL_VL DtCreateEntityPdu : public DtSimanPdu
00032 {
00033 public:
00034 
00035    enum { PduStaticSize=28 };
00036 
00037 public:
00039    DtCreateEntityPdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00040 
00041    DtCreateEntityPdu(const DtNetCreateEntityPdu *initial, 
00042                      DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00043 
00044    DtCreateEntityPdu(const DtEntityIdentifier &to,
00045                      const DtEntityIdentifier &from, 
00046                      DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00047 
00050    static DtPdu *create(const DtNetPacket *initial, 
00051                         DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);    
00052 
00055    static void addCallback(DtExerciseConn *conn, 
00056                            DtCreateEntityPduCb cb, void *usr);
00057    static void removeCallback(DtExerciseConn *conn, 
00058                               DtCreateEntityPduCb cb, void *usr);
00059 
00061    int requestId() const;
00062    void setRequestId(int id);
00063 
00065    virtual void printData() const;
00066 
00068    virtual void printDataToStream(std::ostream& stream) const;
00069 
00070 
00071 protected:
00073    DtPduKind internalGetPduKind() const {return DtCreateEntityPduKind;}
00074 
00075 };
00076 
00077 #endif
00078 #endif
00079 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)