MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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/lgrCmds.h>
14 #include <lgrCmds/lgrCommand.h>
15 #include <lgrUtil/collectors.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 
56  ( const DtBase64Data& data),
57  ( const DtCommand& command, DtBase64Data& data))
58 
60  ( const std::vector<DtString>& types),
61  ( const DtCommand& command,std::vector<DtString>& types))
62 
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 
71  FilterEntityTypes,
72  ( const std::vector<DtString>& types),
73  ( const DtCommand& command,std::vector<DtString>& types))
74 
76  FilterEntityIds,
77  ( const std::vector<DtString>& ids),
78  ( const DtCommand& command,std::vector<DtString>& ids))
79 
81  SetCommonEntityIds,
82  ( const std::vector<DtString>& ids),
83  ( const DtCommand& command,std::vector<DtString>& ids))
84 
85  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 12, SetDisVersion,( int version ),
86  ( const DtCommand& command,int& version ))
87 
88 
89  //@}
90 
91 
92 
93 
94  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1, HeartbeatRateChanged,(double rate),
95  (DtResponse command,double& rate))
96 
97  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2, TimeoutRateChanged,(double rate),
98  (DtResponse command,double& rate))
99 
100  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3, ConnectionParametersDISChanged,
101  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
102  int sendBufferSize, int recvBufferSize, int multicastTtl,
103  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
104  const std::vector<DtString>& mcastAddresses ),
105  ( DtResponse command, int& port, int& exerciseId, int& siteId, int& appNumber,
106  bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
107  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
108  std::vector<DtString>& mcastAddresses ))
109 
110  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtBase64Data& data),
111  (DtResponse command, DtBase64Data& data))
112 
113  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 5, EntityTypeManagerChanged,
114  (const DtBase64Data& data),
115  (DtResponse command, DtBase64Data& data))
116 
117  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6, DrainInputSettingsChanged,
118  (double maxTime, int numPdusToRead),
119  (DtResponse command, double& maxTime, int& numPdusToRead))
120 
121  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 7, EntityIdFilterChanged,
122  (DtBase64Data& filter),
123  (DtResponse command, DtBase64Data& filter))
124 
125  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 8, DisVersionChanged,
126  (int version),
127  (DtResponse command, int& version))
128 
129  //@}
130 
131 
132  static const char* commandToString(int commandId);
133 
135  static const char* responseToString(int responseId);
136 
137  };
138 
139 }

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)