MAK RTIspy API Documentation for HLA Evolved
listFederationsMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: listFederationsMsg.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtListFederationsMsg_H_
00013 #define DtListFederationsMsg_H_
00014 
00015 #include "rtiMsg.h"
00016 #include "netListFederationsMsg.h"
00017 
00018 class DtConnectionMgr;
00019 class DtListFederationsMsg;
00020 typedef void (*DtListFederationsMsgCb)(const DtListFederationsMsg& msg, void* usr);
00021 
00022 class DT_DLL_LRC DtListFederationsMsg : public DtRtiMsg
00023 {
00024 public:
00025 
00027    DtListFederationsMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00028 
00030    DtListFederationsMsg(unsigned long ID,
00031       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00032 
00034    DtListFederationsMsg(const DtNetListFederationsMsg* netRep,
00035       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00036 
00038    virtual ~DtListFederationsMsg();
00039 
00041    virtual DtRtiMsg* clone(bool copy = true) const; 
00042 
00044    void setDestinationID( unsigned long ID );
00045    const unsigned long destinationID() const;
00046 
00048    virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
00049 
00050 public:
00051 
00053    static void addCallback(DtConnectionMgr *conn,
00054       DtListFederationsMsgCb cb, void *usr);
00055    static void removeCallback(DtConnectionMgr *conn,
00056       DtListFederationsMsgCb cb, void *usr);
00057 
00059    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00060 
00062    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00063       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00064 
00065 protected:
00066 
00068    virtual DtNetListFederationsMsg* netListFederationsMsg();
00069    virtual const DtNetListFederationsMsg* netListFederationsMsg() const;
00070 
00072    virtual DtRtiMsgKind internalDtRtiMsgKind();
00073 
00075    virtual int minSize() const;
00076 
00077 };
00078 
00079 #endif
00080 

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)