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