MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
macAddrMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: macAddrMsg.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtMacAddrMsg_H_
10 #define DtMacAddrMsg_H_
11 
16 
17 #include <vlutil/vlString.h>
18 #include <vlutil/vlUtil.h>
19 
20 #include "rtiMsg.h"
21 #include "netMacAddrMsg.h"
22 #include <map>
23 
24 class DtMacAddrMsg;
25 class DtConnectionMgr;
26 
27 typedef void (*DtMacAddrCb)(const DtMacAddrMsg& msg, void* usr);
28 
29 
33 {
34 public:
35 
36 
38  DtMacAddrMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
40  DtMacAddrMsg(const DtNetMacAddrMsg* netRepMsg,
41  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
42 
44  virtual ~DtMacAddrMsg();
45 
47  virtual DtRtiMsg* clone(bool copy = true) const;
48 
50  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
51 
53  virtual void setMacAddr(unsigned long long addr);
54  virtual unsigned long long macAddr() const;
55 
60  virtual void setSenderConnecting(bool yesNo);
61  virtual bool senderConnecting() const;
62 
63 public:
64 
66  static DtRtiMsg* create(const DtNetMsgHeader* initial,
67  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
68 
69  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
70 
73  static void addCallback(DtConnectionMgr* conn,
74  DtMacAddrCb cb, void* usr);
75  static void removeCallback(DtConnectionMgr* conn,
76  DtMacAddrCb cb, void* usr);
77 
78 
79 protected:
80 
82  virtual DtNetMacAddrMsg* netMacAddrMsg();
83  virtual const DtNetMacAddrMsg* netMacAddrMsg() const;
84 
87 
89  virtual int minSize() const;
90 
91 
92 };
93 
94 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
The DtMacAddrMsg defines a msg used by forwarders to connect.
Definition: macAddrMsg.h:32
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
void(* DtMacAddrCb)(const DtMacAddrMsg &msg, void *usr)
Definition: macAddrMsg.h:27
This file contains the declaration of DtNetMacAddrMsg.
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Network representation for the Mac Address messages.
Definition: netMacAddrMsg.h:23
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)