7 #ifndef EVENT_LCPARAMETERS_H
8 #define EVENT_LCPARAMETERS_H 1
12 #include "LCIOSTLTypes.h"
36 virtual int getIntVal(
const std::string & key)
const = 0;
40 virtual float getFloatVal(
const std::string & key)
const = 0;
44 virtual const std::string &
getStringVal(
const std::string & key)
const = 0;
75 virtual int getNInt(
const std::string & key)
const = 0;
79 virtual int getNFloat(
const std::string & key)
const = 0;
83 virtual int getNString(
const std::string & key)
const = 0;
87 virtual void setValue(
const std::string & key,
int value) = 0;
91 virtual void setValue(
const std::string & key,
float value) = 0;
95 virtual void setValue(
const std::string & key,
const std::string & value) = 0;
99 virtual void setValues(
const std::string & key,
const IntVec & values) = 0;
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.