1 | /**
|
---|
2 | * @file UEUserGuideClientMessages.h
|
---|
3 | * This header file defines simple data message used in communication with the
|
---|
4 | * .UEUserGuide application
|
---|
5 | * @author Yann Garcia
|
---|
6 | * @version 0.3
|
---|
7 | * @date 28/07/2009
|
---|
8 | */
|
---|
9 |
|
---|
10 | #ifndef TriggerCommandsGUI_UEUserGuideClientMessages
|
---|
11 | #define TriggerCommandsGUI_UEUserGuideClientMessages
|
---|
12 |
|
---|
13 | #include "Messages/TrafficCaptureMessageId.h"
|
---|
14 | #include "Messages/TrafficCaptureMessage.h"
|
---|
15 | #include <vector>
|
---|
16 |
|
---|
17 | namespace UpperTestAdapter {
|
---|
18 |
|
---|
19 | namespace Processors {
|
---|
20 |
|
---|
21 | namespace TriggerCommandsGUI {
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * This class describes a merging request. This request is used for merging several pcap files
|
---|
25 | * into one. If the operation is successful, the path to the file containing merged data is
|
---|
26 | * returned by a subsequent response.
|
---|
27 | */
|
---|
28 | class UEUserGuideClientRequest : public TrafficCaptureMessage
|
---|
29 | {
|
---|
30 | private:
|
---|
31 | std::string m_sTrigger;
|
---|
32 | std::vector<std::string> m_vsParamsList;
|
---|
33 | protected:
|
---|
34 | virtual unsigned int CalculateDataLength();
|
---|
35 | virtual void EncodePayload(unsigned int & nOffset);
|
---|
36 | virtual bool DecodePayload(const char * pPayload, unsigned int nPayloadLength, unsigned int & nOffset);
|
---|
37 | public:
|
---|
38 | UEUserGuideClientRequest() {}
|
---|
39 | virtual ~UEUserGuideClientRequest() {}
|
---|
40 | virtual unsigned short GetId() const { return 0x0001; }
|
---|
41 |
|
---|
42 | void SetTriggerCommand(const std::string & sTrigger, const std::vector<std::string> & vsParamsList);
|
---|
43 | };
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * This class describes a reply to a merging request.
|
---|
47 | */
|
---|
48 | class UEUserGuideClientReply : public CommonReplyMessage
|
---|
49 | {
|
---|
50 | protected:
|
---|
51 | virtual unsigned int CalculateDataLength();
|
---|
52 | virtual void EncodePayload(unsigned int & nOffset);
|
---|
53 | virtual bool DecodePayload(const char * pPayload, unsigned int nPayloadLength, unsigned int & nOffset);
|
---|
54 | public:
|
---|
55 | UEUserGuideClientReply() {}
|
---|
56 | virtual ~UEUserGuideClientReply() {}
|
---|
57 | virtual unsigned short GetId() const { return 0x0002; }
|
---|
58 | };
|
---|
59 |
|
---|
60 | } } } // namespaces
|
---|
61 |
|
---|
62 | #endif // TriggerCommandsGUI_UEUserGuideClientMessages
|
---|