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 #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 #include "lgrEntityIdFilter.h"
21 
22 #include <utility>
23 #include <vlutil/vlString.h>
24 
25 namespace MAKLogger
26 {
27  class DtDisDescriptor;
28  class DtLgrDisEntityTypeManager;
29 
33  {
34  public:
35 
38 
40 
42  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
43  int sendBufferSize, int recvBufferSize, int multicastTtl,
44  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
45  const std::vector<DtString>& mcastAddresses ),
46  ( const DtCommand& command, int& port, int& exerciseId, int& siteId,
47  int& appNumber, bool& useAsynchIO,
48  int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
49  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
50  std::vector<DtString>& mcastAddresses ))
51 
52  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 2, SetHeartbeatRate,( double rate ),
53  ( const DtCommand& command,double& rate ))
54 
55  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 3, SetTimeoutRate,( double rate ),
56  ( const DtCommand& command, double& rate ))
57 
59  ( const DtCommand& command,DtDisDescriptor& desc))
60 
62  ( const DtLgrDisEntityTypeManager&),
63  ( const DtCommand& command, DtLgrDisEntityTypeManager&))
64 
65  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 6, SetCommonEntityTypes,
66  ( const std::vector<DtString>& types),
67  ( const DtCommand& command,std::vector<DtString>& types))
68 
69  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 7, AddCustomPDU,
70  ( const std::vector<DtString>& pduDesc),
71  ( const DtCommand& command,std::vector<DtString>& pduDesc))
72 
73  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8, SetDrainInput, (double maxTime, int numPdusToRead),
74  (const DtCommand& command, double& maxTime, int& numPdusToRead))
75 
77  FilterEntityTypes,
78  ( const std::vector<DtString>& types),
79  ( const DtCommand& command,std::vector<DtString>& types))
80 
82  FilterEntityIds,
83  ( const std::vector<DtString>& ids),
84  ( const DtCommand& command,std::vector<DtString>& ids))
85 
87  SetCommonEntityIds,
88  ( const std::vector<DtString>& ids),
89  ( const DtCommand& command,std::vector<DtString>& ids))
90 
91 
93 
95 
96 
97  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1, HeartbeatRateChanged,(double rate),
98  (DtResponse command,double& rate))
99 
100  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2, TimeoutRateChanged,(double rate),
101  (DtResponse command,double& rate))
102 
103  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3, ConnectionParametersChanged,
104  ( int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO,
105  int sendBufferSize, int recvBufferSize, int multicastTtl,
106  const DtString& destAddrString, const DtString& netmask, const DtString& deviceAddrString,
107  const std::vector<DtString>& mcastAddresses ),
108  ( DtResponse command, int& port, int& exerciseId, int& siteId, int& appNumber,
109  bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
110  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
111  std::vector<DtString>& mcastAddresses ))
112 
113  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4, DisDescriptionChanged,(const DtDisDescriptor& desc),
114  (DtResponse command,DtDisDescriptor& desc))
115 
116  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 5, EntityTypeManagerChanged,
117  (const DtLgrDisEntityTypeManager& mgr),
118  (DtResponse command,DtLgrDisEntityTypeManager& mgr))
119 
120  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6, DrainInputSettingsChanged,
121  (double maxTime, int numPdusToRead),
122  (DtResponse command, double& maxTime, int& numPdusToRead))
123 
124  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 7, EntityIdFilterChanged,
125  (DtLgrEntityIdFilter& filter),
126  (DtResponse command, DtLgrEntityIdFilter& filter))
127 
129 
131  static const char* commandToString(int commandId);
132 
134  static const char* responseToString(int responseId);
135 
136  };
137 
138 }
139 
140 #endif
141 
142 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)