MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sigToCbMapper.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: sigToCbMapper.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef sigToCbMapper_H_
10 #define sigToCbMapper_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include <vlutil/vlString.h>
17 #include <list>
18 #include <QtCore/QObject>
19 
20 typedef void (*DtParameterlessCb)( void* usr );
21 
26 {
27  Q_OBJECT
28 
29 public:
30 
32  DtSignalToCallbackMapper(const QObject* sender, const char* signal);
33 
36 
37 private:
38 
41 
44 
45 public:
46 
48  virtual void addCallback( DtParameterlessCb cb, void* usr );
49 
51  virtual void removeCallback( DtParameterlessCb cb, void* usr );
52 
53 public slots:
54 
56  void callCallbacks();
57 
58 protected:
59 
60  struct DtCbInfo
61  {
62  DtCbInfo( DtParameterlessCb c, void* u ) :
63  cb(c), usr(u)
64  {};
65 
67  void* usr;
68  };
69 
71  std::list<DtCbInfo> myCallbacks;
72 
74  const QObject* mySender;
75 
77  const MAKRti::DtString mySignal;
78 
79 };
80 
81 #endif

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)