Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SQParamDeco_v1.cxx
Go to the documentation of this file.
1 #include "SQParamDeco_v1.h"
3 
4 using namespace std;
5 
7 
9 {
10  ;
11 }
12 
14 {
15  ;
16 }
17 
18 void SQParamDeco_v1::identify(ostream& os) const
19 {
20  os << "---SQParamDeco_v1--------------------" << endl;
21 }
22 
24 {
25  return 1;
26 }
27 
29 {
30  return new SQParamDeco_v1(*this);
31 }
32 
34 {
35  m_map.clear();
36 }
37 
38 bool SQParamDeco_v1::has_variable(const std::string name) const
39 {
40  return m_map.find(name) != m_map.end();
41 }
42 
43 std::string SQParamDeco_v1::get_variable(const std::string name) const
44 {
45  return has_variable(name) ? m_map.at(name) : "";
46 }
47 
48 void SQParamDeco_v1::set_variable(const std::string name, const std::string value)
49 {
50  m_map[name] = value;
51 }
std::string get_variable(const std::string name) const
Return the value of a variable having &#39;name&#39;. Return &quot;&quot; if no variable exists.
void set_variable(const std::string name, const std::string value)
int isValid() const
isValid returns non zero if object contains vailid data
virtual ~SQParamDeco_v1()
SQParamDeco * Clone() const
SQParamDeco_v1.h.
Definition: SQParamDeco_v1.h:6
void identify(std::ostream &os=std::cout) const
void Reset()
Clear Event.
ClassImp(PdbCalChan)
SQParamDeco.h.
Definition: SQParamDeco.h:16
bool has_variable(const std::string name) const
Return &#39;true&#39; if a variable having &#39;name&#39; exists.