tdaq-develop-2025-02-12
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:
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,
23  SOAPParameters parameters);
24  static xoap::MessageReference makeSOAPMessageReference(std::string command,
25  std::string fileName);
26 
27  static void addParameters(xoap::MessageReference& message, SOAPParameters parameters);
28 
29  static SOAPCommand translate(const xoap::MessageReference& message);
30 
31  static std::string receive(const xoap::MessageReference& message);
32  static std::string receive(const xoap::MessageReference& message,
33  SOAPCommand& soapCommand);
34  static std::string receive(const xoap::MessageReference& message,
35  SOAPParameters& parameters);
36 };
37 } // namespace ots
38 #endif