MAK RTIspy API Documentation for HLA 1.3
 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 #ifndef DtMomInterCbMgr_H_
13 #define DtMomInterCbMgr_H_
14 
15 #ifdef DtMOM
16 
17 #include "rtiMsConfig.h"
18 #include <vlutil/vlList.h>
19 #include "internalTypes.h"
20 
21 class DtMomInteraction;
22 class DtMomInterCallbackInfo;
23 class DtFomClassMgr;
24 
26 typedef void (*DtMomInterCallbackFcn)(const DtMomInteraction& msg, void* usr);
27 
31 class DT_DLL_LRC DtMomInterCbMgr
32 {
33 public:
34 
36  DtMomInterCbMgr(DtFomClassMgr* fomMgrPtr);
37 
39  virtual ~DtMomInterCbMgr();
40 
42  DtMomInterCbMgr(const DtMomInterCbMgr& orig);
43 
45  DtMomInterCbMgr& operator=(const DtMomInterCbMgr& orig);
46 
48  virtual DtFomClassMgr* fom();
49 
51  virtual void addInterCallback(DtInteractionClassHandle handle,
52  DtMomInterCallbackFcn fcn, void* usr);
53 
55  virtual void removeInterCallback(DtInteractionClassHandle handle,
56  DtMomInterCallbackFcn fcn, void* usr);
57 
59  virtual void processInteraction(const DtMomInteraction& msg) const;
60 
62  virtual int numCallbacks(DtInteractionClassHandle handle ) const;
63 
64 protected:
65 
67  virtual void addInterCallback(DtInteractionClassHandle handle,
68  DtMomInterCallbackInfo* info);
69 
71  virtual void removeInterCallback(DtInteractionClassHandle handle,
72  const DtMomInterCallbackInfo& info);
73 
76  void emptyList();
77 
80  void copyList(const DtMomInterCbMgr& orig);
81 
82 protected:
83 
85  MAKRti::DtList* myCbList;
86 
88  DtFomClassMgr* myFom;
89 
90  const unsigned int myMaxInteractions;
91 };
92 
93 #endif
94 #endif
95 
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:35
Definition: fomMgr.h:53
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
The declaration of internal types.

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)