MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
momInterCbMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: momInterCbMgr.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #pragma once
13 
14 #ifdef DtMOM
15 
16 #include "rtiMsConfig.h"
17 #include "internalTypes.h"
18 
19 #include <map>
20 #include <set>
21 
22 class DtMomInteraction;
23 class DtMomInterCallbackInfo;
24 class DtFomClassMgr;
25 
27 typedef void (*DtMomInterCallbackFcn)(const DtMomInteraction& msg, void* usr);
28 
32 class DT_DLL_LRC DtMomInterCbMgr
33 {
34 public:
35 
37  DtMomInterCbMgr(DtFomClassMgr* fomMgrPtr);
38 
40  virtual ~DtMomInterCbMgr();
41 
43  DtMomInterCbMgr(const DtMomInterCbMgr& orig);
44 
46  DtMomInterCbMgr& operator=(const DtMomInterCbMgr& orig);
47 
49  virtual const DtFomClassMgr* fom() const;
50 
52  virtual DtFomClassMgr* fom();
53 
55  virtual void addInterCallback(DtInteractionClassHandle handle, DtMomInterCallbackFcn fcn, void* usr);
56 
58  virtual void removeInterCallback(DtInteractionClassHandle handle, DtMomInterCallbackFcn fcn, void* usr);
59 
61  virtual void processInteraction(const DtMomInteraction& msg) const;
62 
63 protected:
64 
66  virtual bool isMomInteraction(DtInteractionClassHandle handle) const;
67 
68 protected:
69 
70  // Map of callbacks by interaction class handle.
71  // Each handle can have multiple callbacks, so the value is a set of callback info objects.
72  std::map<DtInteractionClassHandle, std::set<DtMomInterCallbackInfo>> myCallbackByHandle;
73 
75  DtFomClassMgr* myFom;
76 };
77 
78 #endif
79 
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:52
Definition: fomMgr.h:49
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
The declaration of internal types.

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)