MAK Data Logger API Documentation for HLA
lgrDisSimCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrDisSimCommandFactory_H_
11 #define lgrDisSimCommandFactory_H_
12 
13 #if DtDIS
14 
15 
16 #include "lgrSim.h"
17 #include "lgrCommand.h"
18 #include "collectors.h"
19 #include "lgrSimCommandFactory.h"
20 
21 #include <utility>
22 #include <vlutil/vlString.h>
23 
24 namespace MAKLogger
25 {
26  class DtDisDescriptor;
27  class DtLgrDisEntityTypeManager;
28 
31  class DT_DLL_LGRSIM DtLgrDisCommandFactory : public DtLgrSimCommandFactory
32  {
33  public:
34 
36  static const DtLgrCommandType theCommandType;
37 
39 
40  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 1, SetConnectionParameters,
41  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
42  int sendBufferSize, int recvBufferSize, int multicastTtl,
43  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
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,
48  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
49  std::vector<DtString>& mcastAddresses ))
50 
51  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 2, SetHeartbeatRate,( double rate ),
52  ( const DtCommand& command,double& rate ))
53 
54  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 3, SetTimeoutRate,( double rate ),
55  ( const DtCommand& command, double& rate ))
56 
57  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 4, SetDisDescription, (const DtDisDescriptor& desc),
58  ( const DtCommand& command,DtDisDescriptor& desc))
59 
60  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 5, SetEntityTypeManager,
61  ( const DtLgrDisEntityTypeManager&),
62  ( const DtCommand& command, DtLgrDisEntityTypeManager&))
63 
64  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 6, SetCommonEntityTypes,
65  ( const std::vector<DtString>& types),
66  ( const DtCommand& command,std::vector<DtString>& types))
67 
68  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 7, AddCustomPDU,
69  ( const std::vector<DtString>& pduDesc),
70  ( const DtCommand& command,std::vector<DtString>& pduDesc))
71 
72  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8, SetDrainInput, (double maxTime, int numPdusToRead),
73  (const DtCommand& command, double& maxTime, int& numPdusToRead))
74 
75  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 9,
76  FilterEntityTypes,
77  ( const std::vector<DtString>& types),
78  ( const DtCommand& command,std::vector<DtString>& types))
79 
81 
83 
84 
85  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1, HeartbeatRateChanged,(double rate),
86  (DtResponse command,double& rate))
87 
88  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2, TimeoutRateChanged,(double rate),
89  (DtResponse command,double& rate))
90 
91  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3, ConnectionParametersChanged,
92  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
93  int sendBufferSize, int recvBufferSize, int multicastTtl,
94  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
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,
98  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
99  std::vector<DtString>& mcastAddresses ))
100 
101  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtDisDescriptor& desc),
102  (DtResponse command,DtDisDescriptor& desc))
103 
104  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 5, EntityTypeManagerChanged,
105  (const DtLgrDisEntityTypeManager& mgr),
106  (DtResponse command,DtLgrDisEntityTypeManager& mgr))
107 
108  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6, DrainInputSettingsChanged,
109  (double maxTime, int numPdusToRead),
110  (DtResponse command, double& maxTime, int& numPdusToRead))
111 
113 
115  static const char* commandToString(int commandId);
116 
118  static const char* responseToString(int responseId);
119 
120  };
121 
122 }
123 
124 #endif
125 
126 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)