lgrDisSimCommandFactory.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00009 
00010 #ifndef lgrDisSimCommandFactory_H_
00011 #define lgrDisSimCommandFactory_H_
00012 
00013 #if DtDIS
00014 
00015 
00016 #include "lgrSim.h"
00017 #include "lgrCommand.h"
00018 #include "collectors.h"
00019 #include "lgrSimCommandFactory.h"
00020 
00021 #include <utility>
00022 #include <vlutil/vlString.h>
00023 
00024 namespace MAKLogger
00025 {
00026    class DtDisDescriptor;
00027    class DtLgrDisEntityTypeManager;
00028 
00031    class DT_DLL_LGRSIM DtLgrDisCommandFactory : public DtLgrSimCommandFactory
00032    {
00033    public:
00034 
00036       static const DtLgrCommandType theCommandType;
00037 
00039 
00040       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 1, SetConnectionParameters,
00041          ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
00042            int sendBufferSize, int recvBufferSize, int multicastTtl,
00043            const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
00044            const std::vector<DtString>& mcastAddresses  ),
00045          ( const DtCommand& command, int& port, int& exerciseId, int& siteId,
00046            int& appNumber,  bool& useAsynchIO,
00047            int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
00048            DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
00049            std::vector<DtString>& mcastAddresses ))
00050 
00051       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 2, SetHeartbeatRate,( double rate ),
00052          ( const DtCommand& command,double& rate ))
00053 
00054       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 3, SetTimeoutRate,( double rate ),
00055          ( const DtCommand& command, double& rate ))
00056 
00057       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 4, SetDisDescription, (const DtDisDescriptor& desc),
00058          ( const DtCommand& command,DtDisDescriptor& desc))
00059 
00060       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 5, SetEntityTypeManager,
00061          ( const DtLgrDisEntityTypeManager&),
00062          ( const DtCommand& command, DtLgrDisEntityTypeManager&))
00063 
00064       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 6, SetCommonEntityTypes,
00065          ( const std::vector<DtString>& types),
00066          ( const DtCommand& command,std::vector<DtString>& types))
00067 
00068       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 7, AddCustomPDU,
00069          ( const std::vector<DtString>& pduDesc),
00070          ( const DtCommand& command,std::vector<DtString>& pduDesc))
00071 
00072       DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8, SetDrainInput, (double maxTime, int numPdusToRead),
00073          (const DtCommand& command, double& maxTime, int& numPdusToRead))
00074          
00076 
00078 
00079 
00080       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1, HeartbeatRateChanged,(double rate),
00081          (DtResponse command,double& rate))
00082 
00083       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2, TimeoutRateChanged,(double rate),
00084          (DtResponse command,double& rate))
00085 
00086       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3, ConnectionParametersChanged,
00087          (  int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
00088             int sendBufferSize, int recvBufferSize, int multicastTtl,
00089             const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
00090             const std::vector<DtString>& mcastAddresses  ),
00091          (  DtResponse command, int& port, int& exerciseId, int& siteId, int& appNumber,
00092             bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
00093             DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
00094             std::vector<DtString>& mcastAddresses ))
00095 
00096       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtDisDescriptor& desc),
00097          (DtResponse command,DtDisDescriptor& desc))
00098 
00099       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 5, EntityTypeManagerChanged,
00100          (const DtLgrDisEntityTypeManager& mgr),
00101          (DtResponse command,DtLgrDisEntityTypeManager& mgr))
00102 
00103       DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6, DrainInputSettingsChanged,
00104          (double maxTime, int numPdusToRead),
00105          (DtResponse command, double& maxTime, int& numPdusToRead))
00106 
00108 
00110       static const char* commandToString(int commandId);
00111 
00113       static const char* responseToString(int responseId);
00114 
00115    };
00116 
00117 }
00118 
00119 #endif
00120 
00121 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)