otsdaq  v2_04_01
SOAPParameters.cc
1 #include "otsdaq-core/SOAPUtilities/SOAPParameters.h"
2 
3 #include <sstream>
4 
5 using namespace ots;
6 
7 //========================================================================================================================
8 SOAPParameters::SOAPParameters(void) { ; }
9 
10 //========================================================================================================================
11 SOAPParameters::SOAPParameters(const std::string& name, const std::string& value)
12  : Parameters<std::string, std::string>(name, value)
13 {
14  ;
15 }
16 
17 //========================================================================================================================
18 SOAPParameters::SOAPParameters(SOAPParameter parameter)
19  : Parameters<std::string, std::string>((Parameter<std::string, std::string>)parameter)
20 {
21  ;
22 }
23 
24 //========================================================================================================================
25 SOAPParameters::~SOAPParameters(void) { ; }
26 
27 //========================================================================================================================
28 void SOAPParameters::addParameter(const std::string& name, const std::string& value)
29 {
30  theParameters_[name] = value;
31 }
32 
33 //========================================================================================================================
34 void SOAPParameters::addParameter(const std::string& name, const int value)
35 {
36  std::stringstream sValue;
37  sValue << value;
38  theParameters_[name] = sValue.str();
39 }