VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simCommandDistributor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
9 
12 
14 #include <vrfplan/simCommand.h>
16 
24 {
25 
26 public:
28  typedef DtSimCommandCallbackList::DtCallbackFunctionType DtSimCommandCallbackFcn;
29  typedef std::map<DtSimCommandMessageType, DtSimCommandCallbackList> DtSimCallbackListMap;
30 
33 
35  virtual ~DtSimCommandDistributor();
36 
38  void addCallback(DtSimCommandMessageType cmdType,
39  DtSimCommandCallbackFcn fcn, void* usrData);
40 
42  void removeCallback(DtSimCommandMessageType cmdType,
43  DtSimCommandCallbackFcn fcn, void* usrData);
44 
47  void invokeCallbacks(const DtSimCommand& simCmd);
48 
49 protected:
50 
53 
55  DtSimCommandDistributor& operator=(const DtSimCommandDistributor& orig);
56 
57 protected:
58 
60 };
DtSimCommandCallbackList::DtCallbackFunctionType DtSimCommandCallbackFcn
Definition: simCommandDistributor.h:28
std::map< DtSimCommandMessageType, DtSimCommandCallbackList > DtSimCallbackListMap
Definition: simCommandDistributor.h:29
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Definition: noArgumentCallbackList.h:91
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
DtSimCallbackListMap mySimCommandCallbacks
Definition: simCommandDistributor.h:59
DtCallbackList< const DtSimCommand & > DtSimCommandCallbackList
Definition: simCommandDistributor.h:27
Contains the DtSimCommandDistributor class declaration.
Definition: simCommandDistributor.h:23

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)