VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfobjcore
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
13
#include <
vrfutil/noArgumentCallbackList.h
>
14
#include <
vrfplan/simCommand.h
>
15
#include <
vrfobjcore/vrfobjcoreDefines.h
>
16
23
class
DT_DLL_vrfobjcore
DtSimCommandDistributor
24
{
25
26
public
:
27
typedef
DtCallbackList<const DtSimCommand&>
DtSimCommandCallbackList
;
28
typedef
DtSimCommandCallbackList::DtCallbackFunctionType
DtSimCommandCallbackFcn
;
29
typedef
std::map<DtSimCommandMessageType, DtSimCommandCallbackList>
DtSimCallbackListMap
;
30
32
DtSimCommandDistributor
();
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
52
DtSimCommandDistributor
(
const
DtSimCommandDistributor
& orig);
53
55
DtSimCommandDistributor
& operator=(
const
DtSimCommandDistributor
& orig);
56
57
protected
:
58
59
DtSimCallbackListMap
mySimCommandCallbacks
;
60
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)