VR-Link API Documentation for DIS
tInterCbMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef tInterCbMgr_H_
8 #define tInterCbMgr_H_
9 
10 #if DtTENA
11 
12 #include <list>
13 #include <vlutil/vlString.h>
14 
19 
21 
23 typedef void (*DtReceiveInteractionCb) (DtInteraction* inter, void* usr);
24 
28 class DT_DLL_VL DtInteractionCallbackManager
29 {
30 public:
33  struct DtInteractionCallbackInfo
34  {
35  DtString name;
36  DtReceiveInteractionCb cb;
37  void* usr;
38  };
39 
40 public:
42  DtInteractionCallbackManager();
43 
45  virtual ~DtInteractionCallbackManager();
46 
48  virtual void addInteractionCallback(const DtString& name,
49  DtReceiveInteractionCb cb, void* usr);
50 
52  virtual void removeInteractionCallback(const DtString& name,
53  DtReceiveInteractionCb cb, void* usr);
54 
57  virtual void applyCallback(const DtString& name, DtInteraction* inter);
58 
59 protected:
61  virtual bool cbInfoAreEqual(const DtInteractionCallbackInfo& first,
62  const DtInteractionCallbackInfo& second);
63 
64 protected:
65 
66  std::list<DtInteractionCallbackInfo> myInteractionCallbackList;
67 };
68 
69 #endif
70 #endif
71 
72 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)