otsdaq  v2_03_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 <xcept/tools.h>
9 #include "otsdaq-core/Macros/XDAQApplicationMacros.h"
10 
11 #include "otsdaq-core/SOAPUtilities/SOAPUtilities.h" /* for SOAPCommand & SOAPParameters */
12 
13 #include <string>
14 #include "otsdaq-core/Macros/CoutMacros.h" /* for XDAQ_CONST_CALL */
15 
16 namespace ots
17 {
18 class SOAPMessenger : public virtual toolbox::lang::Class
19 {
20  public:
21  SOAPMessenger(xdaq::Application* application);
22  SOAPMessenger(const SOAPMessenger& aSOAPMessenger);
23 
24  std::string send(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d,
25  xoap::MessageReference message);
26  std::string send(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d,
27  SOAPCommand soapCommand);
28  std::string send(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command);
29  std::string send(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d,
30  std::string command,
31  SOAPParameters parameters);
32  std::string sendStatus(XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d,
33  std::string message);
34 
35  xoap::MessageReference sendWithSOAPReply(
36  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, xoap::MessageReference message);
37  xoap::MessageReference sendWithSOAPReply(
38  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, SOAPCommand soapCommand);
39  xoap::MessageReference sendWithSOAPReply(
40  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d, std::string command);
41  xoap::MessageReference sendWithSOAPReply(
42  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* d,
43  std::string command,
44  SOAPParameters parameters);
45 
46  protected:
47  xdaq::Application* theApplication_;
48 };
49 } // namespace ots
50 #endif