MAK RTIspy API Documentation for HLA 1.3
wwwStateReqMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: wwwStateReqMsg.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtWwwStateReqMsg_H_
00013 #define DtWwwStateReqMsg_H_
00014 
00015 #include "rtiMsg.h"
00016 #include "rtiMsConfig.h"
00017 #include "netWwwStateReqMsg.h"
00018 
00019 class DtConnectionMgr;
00020 class DtWwwStateReqMsg;
00021 class DtLogicalTimeFactory;
00022 typedef void (*DtWwwStateRequestCb)(const DtWwwStateReqMsg& inter, void* usr);
00023 
00024 
00025 class DT_DLL_LRC DtWwwStateReqMsg : public DtRtiMsg
00026 {
00027 
00028 public:
00029    
00031    DtWwwStateReqMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00032 
00034    DtWwwStateReqMsg(unsigned long connHandle, unsigned long requestType, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00035 
00037    DtWwwStateReqMsg(const DtNetWwwStateReqMsg* netRep,
00038       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00039 
00041    virtual ~DtWwwStateReqMsg();
00042 
00044    virtual DtRtiMsg* clone(bool copy = true) const; 
00045 
00047    virtual unsigned long targetConnectionId() const;
00048    virtual void setTargetConnectionId( unsigned long handle );
00049 
00051    virtual unsigned long requestType() const;
00052    virtual void setRequestType( unsigned long requestType );
00053 
00055    virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
00056 
00057 public:
00058 
00060    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00061       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00062 
00063    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00064 
00066    static void addCallback(DtConnectionMgr* conn, DtWwwStateRequestCb cb, void* usr);
00067    static void removeCallback(DtConnectionMgr* conn, DtWwwStateRequestCb cb, void* usr);
00068 
00069 protected:
00070 
00072    virtual DtNetWwwStateReqMsg* netWwwStateReqMsg();
00073    virtual const DtNetWwwStateReqMsg* netWwwStateReqMsg() const;
00074 
00076    virtual DtRtiMsgKind internalDtRtiMsgKind();
00077 
00079    virtual int minSize() const;
00080 
00081 };
00082 
00083 #endif  //! DtWwwStateReqMsg_H_
00084 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)