LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCParameters.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef EVENT_LCPARAMETERS_H
8 #define EVENT_LCPARAMETERS_H 1
9 
10 #include <string>
11 
12 #include "LCIOSTLTypes.h"
13 
14 namespace EVENT {
15 
28 class LCParameters {
29 
30 public:
32  virtual ~LCParameters() { /* nop */; }
33 
36  virtual int getIntVal(const std::string & key) const = 0;
37 
40  virtual float getFloatVal(const std::string & key) const = 0;
41 
44  virtual double getDoubleVal(const std::string & key) const = 0;
45 
48  virtual const std::string & getStringVal(const std::string & key) const = 0;
49 
53  virtual IntVec & getIntVals(const std::string & key, IntVec & values) const = 0;
54 
58  virtual FloatVec & getFloatVals(const std::string & key, FloatVec & values) const = 0;
59 
63  virtual DoubleVec & getDoubleVals(const std::string & key, DoubleVec & values) const = 0;
64 
68  virtual StringVec & getStringVals(const std::string & key, StringVec & values) const = 0;
69 
72  virtual const StringVec & getIntKeys(StringVec & keys) const = 0;
73 
76  virtual const StringVec & getFloatKeys(StringVec & keys) const = 0;
77 
80  virtual const StringVec & getDoubleKeys(StringVec & keys) const = 0;
81 
84  virtual const StringVec & getStringKeys(StringVec & keys) const = 0;
85 
88  virtual int getNInt(const std::string & key) const = 0;
89 
92  virtual int getNFloat(const std::string & key) const = 0;
93 
96  virtual int getNDouble(const std::string & key) const = 0;
97 
100  virtual int getNString(const std::string & key) const = 0;
101 
104  virtual void setValue(const std::string & key, int value) = 0;
105 
108  virtual void setValue(const std::string & key, float value) = 0;
109 
112  virtual void setValue(const std::string & key, double value) = 0;
113 
116  virtual void setValue(const std::string & key, const std::string & value) = 0;
117 
120  virtual void setValues(const std::string & key, const IntVec & values) = 0;
121 
124  virtual void setValues(const std::string & key, const FloatVec & values) = 0;
125 
128  virtual void setValues(const std::string & key, const DoubleVec & values) = 0;
129 
132  virtual void setValues(const std::string & key, const StringVec & values) = 0;
133 }; // class
134 } // namespace EVENT
135 #endif /* ifndef EVENT_LCPARAMETERS_H */
virtual DoubleVec & getDoubleVals(const std::string &key, DoubleVec &values) const =0
Adds all double values for the given key to values.
virtual const StringVec & getIntKeys(StringVec &keys) const =0
Returns a list of all keys of integer parameters.
virtual const StringVec & getStringKeys(StringVec &keys) const =0
Returns a list of all keys of string parameters.
virtual int getNDouble(const std::string &key) const =0
The number of double values stored for this key.
virtual int getNInt(const std::string &key) const =0
The number of integer values stored for this key.
virtual const StringVec & getDoubleKeys(StringVec &keys) const =0
Returns a list of all keys of double parameters.
virtual int getNFloat(const std::string &key) const =0
The number of float values stored for this key.
virtual ~LCParameters()
Destructor.
Definition: LCParameters.h:32
STL class.
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual double getDoubleVal(const std::string &key) const =0
Returns the first double value for the given key.
virtual void setValues(const std::string &key, const IntVec &values)=0
Set integer values for the given key.
virtual void setValue(const std::string &key, int value)=0
Set integer value for the given key.
virtual float getFloatVal(const std::string &key) const =0
Returns the first float value for the given key.
virtual const StringVec & getFloatKeys(StringVec &keys) const =0
Returns a list of all keys of float parameters.
virtual StringVec & getStringVals(const std::string &key, StringVec &values) const =0
Adds all string values for the given key to values.
virtual IntVec & getIntVals(const std::string &key, IntVec &values) const =0
Adds all integer values for the given key to values.
virtual int getIntVal(const std::string &key) const =0
Returns the first integer value for the given key.
virtual const std::string & getStringVal(const std::string &key) const =0
Returns the first string value for the given key.
virtual int getNString(const std::string &key) const =0
The number of string values stored for this key.
virtual FloatVec & getFloatVals(const std::string &key, FloatVec &values) const =0
Adds all float values for the given key to values.