source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/UpperTestAdapter/TriggerCommandsGUI/UEUserGuideClientMessages.h

Last change on this file was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 1.9 KB
RevLine 
[22]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
17namespace UpperTestAdapter {
18 
19namespace Processors {
20 
21namespace 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 */
28class UEUserGuideClientRequest : public TrafficCaptureMessage
29{
30private:
31  std::string m_sTrigger;
32  std::vector<std::string> m_vsParamsList;
33protected:
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);
37public:
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 */
48class UEUserGuideClientReply : public CommonReplyMessage
49{
50protected:
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);
54public:
55  UEUserGuideClientReply() {}
56  virtual ~UEUserGuideClientReply() {}
57  virtual unsigned short GetId() const { return 0x0002; }
58};
59
60} } } // namespaces
61
62#endif // TriggerCommandsGUI_UEUserGuideClientMessages
Note: See TracBrowser for help on using the repository browser.