Implementation of Simple interface to store generic named parameters of type int, float and string. More...
#include <IMPL/LCParametersImpl.h>
Public Member Functions | |
virtual | ~LCParametersImpl () |
Destructor. | |
virtual int | getIntVal (const std::string &key) const |
Returns the first integer value for the given key. | |
virtual float | getFloatVal (const std::string &key) const |
Returns the first float value for the given key. | |
virtual const std::string & | getStringVal (const std::string &key) const |
Returns the first string value for the given key. | |
virtual EVENT::IntVec & | getIntVals (const std::string &key, EVENT::IntVec &values) const |
Adds all integer values for the given key to values. More... | |
virtual EVENT::FloatVec & | getFloatVals (const std::string &key, EVENT::FloatVec &values) const |
Adds all float values for the given key to values. More... | |
virtual EVENT::StringVec & | getStringVals (const std::string &key, EVENT::StringVec &values) const |
Adds all float values for the given key to values. More... | |
virtual const EVENT::StringVec & | getIntKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of integer parameters. | |
virtual const EVENT::StringVec & | getFloatKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of float parameters. | |
virtual const EVENT::StringVec & | getStringKeys (EVENT::StringVec &keys) const |
Returns a list of all keys of string parameters. | |
virtual int | getNInt (const std::string &key) const |
The number of integer values stored for this key. | |
virtual int | getNFloat (const std::string &key) const |
The number of float values stored for this key. | |
virtual int | getNString (const std::string &key) const |
The number of string values stored for this key. | |
virtual void | setValue (const std::string &key, int value) |
Set integer value for the given key. | |
virtual void | setValue (const std::string &key, float value) |
Set float value for the given key. | |
virtual void | setValue (const std::string &key, const std::string &value) |
Set string value for the given key. | |
virtual void | setValues (const std::string &key, const EVENT::IntVec &values) |
Set integer values for the given key. | |
virtual void | setValues (const std::string &key, const EVENT::FloatVec &values) |
Set float values for the given key. | |
virtual void | setValues (const std::string &key, const EVENT::StringVec &values) |
Set string values for the given key. | |
![]() | |
virtual | ~LCParameters () |
Destructor. | |
virtual IntVec & | getIntVals (const std::string &key, IntVec &values) const =0 |
Adds all integer values for the given key to values. More... | |
virtual FloatVec & | getFloatVals (const std::string &key, FloatVec &values) const =0 |
Adds all float values for the given key to values. More... | |
virtual StringVec & | getStringVals (const std::string &key, StringVec &values) const =0 |
Adds all float values for the given key to values. More... | |
virtual const StringVec & | getIntKeys (StringVec &keys) const =0 |
Returns a list of all keys of integer parameters. | |
virtual const StringVec & | getFloatKeys (StringVec &keys) const =0 |
Returns a list of all keys of float parameters. | |
virtual const StringVec & | getStringKeys (StringVec &keys) const =0 |
Returns a list of all keys of string parameters. | |
virtual void | setValues (const std::string &key, const IntVec &values)=0 |
Set integer values for the given key. | |
virtual void | setValues (const std::string &key, const FloatVec &values)=0 |
Set float values for the given key. | |
virtual void | setValues (const std::string &key, const StringVec &values)=0 |
Set string values for the given key. | |
![]() | |
virtual int | simpleUID () const |
Protected Attributes | |
IntMap | _intMap |
FloatMap | _floatMap |
StringMap | _stringMap |
![]() | |
bool | _readOnly |
int | _id |
Friends | |
class | LCRunHeaderImpl |
class | LCEventImpl |
class | LCCollectionVec |
Additional Inherited Members | |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () throw ( EVENT::ReadOnlyException ) |
void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Implementation of Simple interface to store generic named parameters of type int, float and string.
It can be used to store (user) meta data that is run, event or collection dependent.
|
virtual |
Adds all float values for the given key to values.
Returns a reference to values for convenience.
|
virtual |
Adds all integer values for the given key to values.
Returns a reference to values for convenience.
|
virtual |
Adds all float values for the given key to values.
Returns a reference to values for convenience.