MAK RTIspy API Documentation for HLA 1516
macAddrMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: macAddrMsg.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef DtMacAddrMsg_H_
00010 #define DtMacAddrMsg_H_
00011 
00016 
00017 #include <vlutil/vlString.h>
00018 #include <vlutil/vlUtil.h>
00019 
00020 #include "rtiMsg.h"
00021 #include "netMacAddrMsg.h"
00022 #include <map>
00023 
00024 class DtMacAddrMsg;
00025 class DtConnectionMgr;
00026 
00027 typedef void (*DtMacAddrCb)(const DtMacAddrMsg& msg, void* usr);
00028 
00029 
00032 class DT_DLL_LRC DtMacAddrMsg : public DtRtiMsg
00033 {
00034 public:
00035    
00036 
00038    DtMacAddrMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00039 
00040    DtMacAddrMsg(const DtNetMacAddrMsg* netRepMsg,
00041       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00042 
00044    virtual ~DtMacAddrMsg();
00045 
00047    virtual DtRtiMsg* clone(bool copy = true) const;
00048 
00050    virtual void printData() const;
00051 
00053    virtual void setMacAddr(unsigned long long addr);
00054    virtual unsigned long long macAddr() const;
00055 
00060    virtual void setSenderConnecting(bool yesNo);
00061    virtual bool senderConnecting() const;
00062    
00063 public:
00064 
00066    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00067       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00068 
00069    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00070 
00073    static void addCallback(DtConnectionMgr* conn,
00074       DtMacAddrCb cb, void* usr);
00075    static void removeCallback(DtConnectionMgr* conn,
00076       DtMacAddrCb cb, void* usr);
00077 
00078       
00079 protected:
00080 
00082    virtual DtNetMacAddrMsg* netMacAddrMsg();
00083    virtual const DtNetMacAddrMsg* netMacAddrMsg() const;
00084 
00086    virtual DtRtiMsgKind internalDtRtiMsgKind();
00087 
00089    virtual int minSize() const;
00090 
00091 
00092 };
00093 
00094 #endif

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)