10 #ifndef lgrDisSimCommandFactory_H_
11 #define lgrDisSimCommandFactory_H_
22 #include <vlutil/vlString.h>
26 class DtDisDescriptor;
27 class DtLgrDisEntityTypeManager;
31 class DT_DLL_LGRSIM DtLgrDisCommandFactory :
public DtLgrSimCommandFactory
36 static const DtLgrCommandType theCommandType;
41 (
int port,
int exerciseId,
int siteId,
int appNumber,
bool useAsynchIO,
42 int sendBufferSize,
int recvBufferSize,
int multicastTtl,
44 const std::vector<DtString>& mcastAddresses ),
45 (
const DtCommand& command,
int& port,
int& exerciseId,
int& siteId,
46 int& appNumber,
bool& useAsynchIO,
47 int& sendBufferSize,
int& recvBufferSize,
int& multicastTtl,
49 std::vector<DtString>& mcastAddresses ))
52 (
const DtCommand& command,
double& rate ))
55 (
const DtCommand& command,
double& rate ))
57 DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 4, SetDisDescription, (
const DtDisDescriptor& desc),
58 (
const DtCommand& command,DtDisDescriptor& desc))
61 (
const DtLgrDisEntityTypeManager&),
62 (
const DtCommand& command, DtLgrDisEntityTypeManager&))
65 ( const std::vector<
DtString>& types),
66 ( const DtCommand& command,std::vector<
DtString>& types))
69 ( const std::vector<
DtString>& pduDesc),
70 ( const DtCommand& command,std::vector<
DtString>& pduDesc))
72 DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8, SetDrainInput, (
double maxTime,
int numPdusToRead),
73 (const DtCommand& command,
double& maxTime,
int& numPdusToRead))
77 ( const std::vector<
DtString>& types),
78 ( const DtCommand& command,std::vector<
DtString>& types))
92 (
int port,
int exerciseId,
int siteId,
int appNumber,
bool useAsynchIO,
93 int sendBufferSize,
int recvBufferSize,
int multicastTtl,
95 const std::vector<
DtString>& mcastAddresses ),
96 (
DtResponse command,
int& port,
int& exerciseId,
int& siteId,
int& appNumber,
97 bool& useAsynchIO,
int& sendBufferSize,
int& recvBufferSize,
int& multicastTtl,
99 std::vector<
DtString>& mcastAddresses ))
101 DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtDisDescriptor& desc),
105 (const DtLgrDisEntityTypeManager& mgr),
106 (
DtResponse command,DtLgrDisEntityTypeManager& mgr))
109 (
double maxTime,
int numPdusToRead),
110 (
DtResponse command,
double& maxTime,
int& numPdusToRead))
115 static const
char* commandToString(
int commandId);
118 static const
char* responseToString(
int responseId);