LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCParameters.h
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 const std::string & getStringVal(const std::string & key) const = 0;
45 
49  virtual IntVec & getIntVals(const std::string & key, IntVec & values) const = 0;
50 
54  virtual FloatVec & getFloatVals(const std::string & key, FloatVec & values) const = 0;
55 
59  virtual StringVec & getStringVals(const std::string & key, StringVec & values) const = 0;
60 
63  virtual const StringVec & getIntKeys(StringVec & keys) const = 0;
64 
67  virtual const StringVec & getFloatKeys(StringVec & keys) const = 0;
68 
71  virtual const StringVec & getStringKeys(StringVec & keys) const = 0;
72 
75  virtual int getNInt(const std::string & key) const = 0;
76 
79  virtual int getNFloat(const std::string & key) const = 0;
80 
83  virtual int getNString(const std::string & key) const = 0;
84 
87  virtual void setValue(const std::string & key, int value) = 0;
88 
91  virtual void setValue(const std::string & key, float value) = 0;
92 
95  virtual void setValue(const std::string & key, const std::string & value) = 0;
96 
99  virtual void setValues(const std::string & key, const IntVec & values) = 0;
100 
103  virtual void setValues(const std::string & key, const FloatVec & values) = 0;
104 
107  virtual void setValues(const std::string & key, const StringVec & values) = 0;
108 }; // class
109 } // namespace EVENT
110 #endif /* ifndef EVENT_LCPARAMETERS_H */
std::vector< std::string > StringVec
Vector of strings.
Definition: LCIOSTLTypes.h:16
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.
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
virtual int getNInt(const std::string &key) const =0
The number of integer values stored for this key.
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
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
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 float values for the given key to values.
std::vector< int > IntVec
Vector of ints.
Definition: LCIOSTLTypes.h:22
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.