otsdaq  v2_05_02_indev
SOAPUtilities.h
1 #ifndef _ots_SOAPUtilities_h
2 #define _ots_SOAPUtilities_h
3 
4 #include <xoap/MessageReference.h>
5 
6 #include "otsdaq/SOAPUtilities/SOAPCommand.h"
7 
8 #include <string>
9 
10 namespace ots
11 {
13 {
14  private: // private constructor because all static members, should never instantiate
15  // this class
16  SOAPUtilities(void);
17  ~SOAPUtilities(void);
18 
19  public:
20  static xoap::MessageReference makeSOAPMessageReference(SOAPCommand soapCommand);
21  static xoap::MessageReference makeSOAPMessageReference(std::string command);
22  static xoap::MessageReference makeSOAPMessageReference(std::string command, SOAPParameters parameters);
23  static xoap::MessageReference makeSOAPMessageReference(std::string command, std::string fileName);
24 
25  static void addParameters(xoap::MessageReference& message, SOAPParameters parameters);
26 
27  static SOAPCommand translate(const xoap::MessageReference& message);
28 
29  static std::string receive(const xoap::MessageReference& message);
30  static std::string receive(const xoap::MessageReference& message, SOAPCommand& soapCommand);
31  static std::string receive(const xoap::MessageReference& message, SOAPParameters& parameters);
32 };
33 } // namespace ots
34 #endif