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