Class Reference for E1039 Core & Analysis Software
SQParamDeco_v1.h
Go to the documentation of this file.
1 #ifndef _H_SQ_PARAM_DECO_V1_H_
3 #define _H_SQ_PARAM_DECO_V1_H_
4 #include "SQParamDeco.h"
5 
6 class SQParamDeco_v1 : public SQParamDeco {
7 public:
9  virtual ~SQParamDeco_v1();
10 
11  void identify(std::ostream& os = std::cout) const;
12  int isValid() const;
13  SQParamDeco* Clone() const;
14  void Reset();
15 
16  bool has_variable(const std::string name) const;
17  std::string get_variable(const std::string name) const;
18  void set_variable(const std::string name, const std::string value);
19 
20  ParamConstIter begin() const { return m_map.begin(); }
21  ParamConstIter end() const { return m_map.end(); }
22  unsigned int size() const { return m_map.size(); }
23 
24 private:
25  ParamMap m_map;
26 
27  ClassDef(SQParamDeco_v1, 1);
28 };
29 
30 #endif /* _H_SQ_PARAM_DECO_V1_H_ */
SQParamDeco_v1.h.
Definition: SQParamDeco_v1.h:6
ParamConstIter begin() const
Return the begin iterator.
ParamConstIter end() const
Return the end iterator.
void identify(std::ostream &os=std::cout) const
virtual ~SQParamDeco_v1()
bool has_variable(const std::string name) const
Return 'true' if a variable having 'name' exists.
void Reset()
Clear Event.
std::string get_variable(const std::string name) const
Return the value of a variable having 'name'. Return "" if no variable exists.
int isValid() const
isValid returns non zero if object contains vailid data
unsigned int size() const
Return the number of variables held.
void set_variable(const std::string name, const std::string value)
SQParamDeco * Clone() const
SQParamDeco.h.
Definition: SQParamDeco.h:16
ParamMap::const_iterator ParamConstIter
Definition: SQParamDeco.h:19
std::map< std::string, std::string > ParamMap
Definition: SQParamDeco.h:18