$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_SOAPCommand_h 00002 #define _ots_SOAPCommand_h 00003 00004 #include "otsdaq-core/SOAPUtilities/SOAPParameter.h" 00005 #include "otsdaq-core/SOAPUtilities/SOAPParameters.h" 00006 00007 #include <xoap/MessageReference.h> 00008 00009 #include <ostream> 00010 #include <string> 00011 00012 namespace ots 00013 { 00014 class SOAPCommand 00015 { 00016 public: 00017 SOAPCommand(void); 00018 SOAPCommand(const xoap::MessageReference& message); 00019 SOAPCommand(std::string command); 00020 SOAPCommand(std::string command, SOAPParameters parameters); 00021 SOAPCommand(std::string command, SOAPParameter parameter); 00022 ~SOAPCommand(void); 00023 00024 // Getters 00025 // FIXMEconst xoap::MessageReference translate (void) const; 00026 const std::string& getCommand(void) const; 00027 const SOAPParameters& getParameters(void) const; 00028 SOAPParameters& getParametersRef(void); 00029 std::string getParameterValue(std::string parameterName) const; 00030 unsigned int getParametersSize(void) const; 00031 00032 // Setters 00033 void translate(const xoap::MessageReference& message); 00034 void setCommand(const std::string command); 00035 void setParameters(const SOAPParameters& parameters); 00036 void setParameter(const std::string parameterName, const std::string parameterValue); 00037 void setParameter(const SOAPParameter parameter); 00038 00039 bool hasParameters(void) const; 00040 bool findParameter(std::string parameterName) const; 00041 friend std::ostream& operator<<(std::ostream& os, const SOAPCommand& command); 00042 00043 private: 00044 std::string command_; 00045 SOAPParameters parameters_; 00046 }; 00047 00048 } // namespace ots 00049 #endif