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