otsdaq  v2_01_00
SOAPMessenger.h
1 #ifndef _ots_SOAPMessenger_h
2 #define _ots_SOAPMessenger_h
3 
4 #pragma GCC diagnostic push
5 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
6 #include <xdaq/Application.h>
7 #pragma GCC diagnostic pop
8 #include "otsdaq-core/Macros/XDAQApplicationMacros.h"
9 #include <xcept/tools.h>
10 
11 
12 #include "otsdaq-core/Macros/CoutMacros.h" /* for XDAQ_CONST_CALL */
13 #include <string>
14 
15 namespace ots
16 {
17 class SOAPCommand;
18 class SOAPParameters;
19 
20 class SOAPMessenger : public virtual toolbox::lang::Class
21 {
22 public:
23 
24  SOAPMessenger(xdaq::Application* application);
25  SOAPMessenger(const SOAPMessenger& aSOAPMessenger);
26 
27  std::string receive(const xoap::MessageReference& message);
28  std::string receive(const xoap::MessageReference& message, SOAPCommand& soapCommand);
29  std::string receive(const xoap::MessageReference& message, SOAPParameters& parameters);
30 
31  std::string send (XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, xoap::MessageReference message) ;
32  std::string send (XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, SOAPCommand soapCommand) ;
33  std::string send (XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command) ;
34  std::string send (XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command, SOAPParameters parameters) ;
35  std::string sendStatus(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string message) ;
36 
37  xoap::MessageReference sendWithSOAPReply(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, xoap::MessageReference message) ;
38  xoap::MessageReference sendWithSOAPReply(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, SOAPCommand soapCommand) ;
39  xoap::MessageReference sendWithSOAPReply(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command) ;
40  xoap::MessageReference sendWithSOAPReply(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command, SOAPParameters parameters) ;
41 
42 protected:
43  xdaq::Application* theApplication_;
44 };
45 }
46 #endif