MAK Data Logger API Documentation for DIS
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 
11 #pragma once
12 
13 #include "lgrCmds.h"
14 #include "lgrCommand.h"
15 #include "collectors.h"
16 #include "lgrSimCommandFactory.h"
17 
18 #include <utility>
19 #include <vlutil/vlString.h>
20 
21 namespace MAKLogger
22 {
23 
27  {
28  public:
29 
32 
34 
35  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 1, SetConnectionParametersDIS,
36  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
37  int sendBufferSize, int recvBufferSize, int multicastTtl,
38  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
39  const std::vector<DtString>& mcastAddresses ),
40  ( const DtCommand& command, int& port, int& exerciseId, int& siteId,
41  int& appNumber, bool& useAsynchIO,
42  int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
43  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
44  std::vector<DtString>& mcastAddresses ))
45 
46  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 2, SetHeartbeatRate,( double rate ),
47  ( const DtCommand& command,double& rate ))
48 
49  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 3, SetTimeoutRate,( double rate ),
50  ( const DtCommand& command, double& rate ))
51 
52  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 4, SetDisDescription, (const DtBase64Data& data),
53  ( const DtCommand& command,DtBase64Data& data))
54 
55  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 5, SetEntityTypeManager,
56  ( const DtBase64Data& data),
57  ( const DtCommand& command, DtBase64Data& data))
58 
59  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 6, SetCommonEntityTypes,
60  ( const std::vector<DtString>& types),
61  ( const DtCommand& command,std::vector<DtString>& types))
62 
63  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 7, AddCustomPDU,
64  ( const std::vector<DtString>& pduDesc),
65  ( const DtCommand& command,std::vector<DtString>& pduDesc))
66 
67  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8, SetDrainInput, (double maxTime, int numPdusToRead),
68  (const DtCommand& command, double& maxTime, int& numPdusToRead))
69 
70  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 9,
71  FilterEntityTypes,
72  ( const std::vector<DtString>& types),
73  ( const DtCommand& command,std::vector<DtString>& types))
74 
75  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 10,
76  FilterEntityIds,
77  ( const std::vector<DtString>& ids),
78  ( const DtCommand& command,std::vector<DtString>& ids))
79 
80  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 11,
81  SetCommonEntityIds,
82  ( const std::vector<DtString>& ids),
83  ( const DtCommand& command,std::vector<DtString>& ids))
84 
85 
86  //@}
87 
88 
89 
90 
91  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1, HeartbeatRateChanged,(double rate),
92  (DtResponse command,double& rate))
93 
94  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2, TimeoutRateChanged,(double rate),
95  (DtResponse command,double& rate))
96 
97  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3, ConnectionParametersDISChanged,
98  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
99  int sendBufferSize, int recvBufferSize, int multicastTtl,
100  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
101  const std::vector<DtString>& mcastAddresses ),
102  ( DtResponse command, int& port, int& exerciseId, int& siteId, int& appNumber,
103  bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
104  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
105  std::vector<DtString>& mcastAddresses ))
106 
107  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtBase64Data& data),
108  (DtResponse command, DtBase64Data& data))
109 
111  (const DtBase64Data& data),
112  (DtResponse command, DtBase64Data& data))
113 
114  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6, DrainInputSettingsChanged,
115  (double maxTime, int numPdusToRead),
116  (DtResponse command, double& maxTime, int& numPdusToRead))
117 
119  (DtBase64Data& filter),
120  (DtResponse command, DtBase64Data& filter))
121 
122  //@}
123 
124 
125  static const char* commandToString(int commandId);
126 
128  static const char* responseToString(int responseId);
129 
130  };
131 
132 }

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)