MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fedAmbCallbackMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: fedAmbCallbackMsg.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef fedAmbCallbackMsg_h
10 #define fedAmbCallbackMsg_h
11 
14 
15 #include <rtiMsg.h>
16 #include <rtiApiTypes.h>
17 
18 #if defined(DtIFSPEC13)
19 #include <RTI.hh>
20 #else
21 #include <RTI/FederateAmbassador.h>
22 #endif
23 class DtConnectionMgr;
24 class DtFedAmbCallback;
26 
27 typedef void (*DtCallbackCb)(const DtFedAmbCallbackMsg& msg, void* usr);
28 
33 
35 {
36 public:
38  DtFedAmbCallbackMsg(DtUniquePtr<DtFedAmbCallback> callback);
39 
41  virtual ~DtFedAmbCallbackMsg();
42 
43 private:
46  DtFedAmbCallbackMsg& operator = (DtFedAmbCallbackMsg const& orig);
47 
48 public:
52  virtual DtRtiMsg* clone(bool copy = true) const;
53 
56 
58  virtual void evokeCallback(RTI_API::FederateAmbassador* fedAmb) const;
59 
61  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
62 
63 public:
65  static void addCallback(DtConnectionMgr *conn, DtCallbackCb cb, void *usr);
66 
68  static void removeCallback(DtConnectionMgr *conn, DtCallbackCb cb, void *usr);
69 
70 protected:
71 
73  DtUniquePtr<DtFedAmbCallback> myCallback;
74 };
75 
76 
77 #endif
78 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
void(* DtCallbackCb)(const DtFedAmbCallbackMsg &msg, void *usr)
Definition: fedAmbCallbackMsg.h:27
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
DtUniquePtr< DtFedAmbCallback > myCallback
The federate ambassador callback parameters.
Definition: fedAmbCallbackMsg.h:73
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
A message that delivers stored callbacks generated by asynchronous thread.
Definition: fedAmbCallbackMsg.h:34
his file contains the rti1516_2025::FederateAmbassador class.

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)