11 #ifndef DtRtiExecCmdFunctor_H_
12 #define DtRtiExecCmdFunctor_H_
16 #include <vlutil/vlPrint.h>
17 #include <vlutil/vlInetAddr.h>
35 virtual void operator()(
const DtRtiExec& exec ) = 0;
43 if (
typeid(*
this) ==
typeid(value) )
59 DtRtiExecCmd(), myFedexName( fedexName ), myFederateHandle( fedHandle ) {}
74 DtRtiExecCmd(), myFedexName( fedexName), myEnabled (enabled ) {}
90 DtRtiExecCmd(), myFedexName( fedexName ), myFedexHandle( fedexHandle ) {}
105 const DtString& ridParam,
const DtString& ridValue) :
106 DtRtiExecCmd(), myFedexName( fedexName ), myFederateHandle( fedHandle ),
107 myRidParam(ridParam), myRidValue(ridValue) {}
112 {
return new DtChangeRidParamCmd( myFedexName, myFederateHandle, myRidParam, myRidValue ); }
131 {
return new DtSendMessageCmd( myFedexName, DtUniquePtr<DtRtiMsg>( myMsg->clone(
true ))); }
156 bool runTest,
bool continuousType,
bool shouldHaltContinuous,
157 bool observing,
unsigned int interactionPeriod,
158 unsigned int numInteractions,
unsigned int payloadBytes ) :
160 myFederateHandle( fedHandle ), myRunTest( runTest ),
161 myContinuousType( continuousType ),
162 myShouldHaltContinuous( shouldHaltContinuous ),
163 myObserving( observing ),
164 myInteractionPeriod( interactionPeriod ),
165 myNumInteractions( numInteractions ),
166 myPayloadBytes( payloadBytes ) {}
172 myRunTest, myContinuousType, myShouldHaltContinuous, myObserving,
173 myInteractionPeriod, myNumInteractions, myPayloadBytes ); }
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:78
DtString myFedexName
Definition: execCmds.h:114
virtual ~DtDestroyFederationCmd()
Definition: execCmds.h:92
DtDestroyFederationCmd(const DtString &fedexName, int fedexHandle)
Definition: execCmds.h:89
Definition: execCmds.h:86
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:193
int myFederateHandle
Definition: execCmds.h:67
Definition: execCmds.h:198
bool myEnabled
Definition: execCmds.h:82
DtString myFedexName
Definition: execCmds.h:81
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:63
DtString myFedexName
Definition: execCmds.h:66
DtString myFedexName
Definition: execCmds.h:175
DtEnableLogCmd()
Definition: execCmds.h:190
DtString myFedexName
Definition: execCmds.h:133
DtDeleteFederateCmd(const DtString &fedexName, int fedHandle)
Definition: execCmds.h:58
unsigned int myNumInteractions
Definition: execCmds.h:182
int myFedexHandle
Definition: execCmds.h:98
DtExitCmd()
Definition: execCmds.h:201
virtual ~DtLatencyTestModeCmd()
Definition: execCmds.h:168
Definition: execCmds.h:101
unsigned int myPayloadBytes
Definition: execCmds.h:183
DtChangeRidParamCmd(const DtString &fedexName, int fedHandle, const DtString &ridParam, const DtString &ridValue)
Definition: execCmds.h:104
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:146
int myFederateHandle
Definition: execCmds.h:115
Definition: execCmds.h:122
DtString myRidValue
Definition: execCmds.h:117
#define DtMoveUnique(ptr)
Definition: internalTypes.h:32
bool myObserving
Definition: execCmds.h:180
virtual ~DtChangeNotifyLevelCmd()
Definition: execCmds.h:144
bool myContinuousType
Definition: execCmds.h:178
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:94
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:170
Definition: execCmds.h:138
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
DtSendMessageCmd(const DtString &fedexName, DtUniquePtr< DtRtiMsg > msg)
Definition: execCmds.h:125
Definition: execCmds.h:55
DtUniquePtr< DtRtiMsg > myMsg
Definition: execCmds.h:134
virtual ~DtExitCmd()
Definition: execCmds.h:202
DtChangeNotifyLevelCmd(DtNotifyLevelType level)
Definition: execCmds.h:141
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:111
DtNotifyLevelType myLevel
Definition: execCmds.h:149
virtual ~DtDeleteFederateCmd()
Definition: execCmds.h:61
virtual ~DtEnableLogCmd()
Definition: execCmds.h:191
virtual ~DtEnableDisableNetworkTestingCmd()
Definition: execCmds.h:76
virtual ~DtSendMessageCmd()
Definition: execCmds.h:128
DtRtiExecCmd()
Definition: execCmds.h:32
DtString myFedexName
Definition: execCmds.h:97
bool myRunTest
Definition: execCmds.h:177
Definition: execCmds.h:152
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:204
virtual DtRtiExecCmd * clone() const
Definition: execCmds.h:130
DtString myRidParam
Definition: execCmds.h:116
DtEnableDisableNetworkTestingCmd(const DtString &fedexName, bool enabled)
Definition: execCmds.h:73
bool myShouldHaltContinuous
Definition: execCmds.h:179
unsigned int myInteractionPeriod
Definition: execCmds.h:181
Definition: execCmds.h:187
Definition: execCmds.h:70
DtLatencyTestModeCmd(const DtString &fedexName, int fedHandle, bool runTest, bool continuousType, bool shouldHaltContinuous, bool observing, unsigned int interactionPeriod, unsigned int numInteractions, unsigned int payloadBytes)
Definition: execCmds.h:155
DtRtiExecCmd base class enforces clone() and operator() ability and provides a very basic functor com...
Definition: execCmds.h:28
int myFederateHandle
Definition: execCmds.h:176
virtual bool operator==(const DtRtiExecCmd &value)
The default comparison uses RTTI typeid to treat functor as a standard function pointer (ie - same fu...
Definition: execCmds.h:41
#define DT_DLL_EXEC
Definition: rtiMsConfig.h:152
virtual void operator()(const DtRtiExec &exec)=0
virtual ~DtRtiExecCmd()
Definition: execCmds.h:33
virtual ~DtChangeRidParamCmd()
Definition: execCmds.h:109