LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Protected Attributes | Friends | List of all members
IMPL::LCParametersImpl Class Reference

Implementation of Simple interface to store generic named parameters of type int, float and string. More...

#include <IMPL/LCParametersImpl.h>

Inheritance diagram for IMPL::LCParametersImpl:
EVENT::LCParameters IMPL::AccessChecked SIO::SIOLCParameters

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::IntVecgetIntVals (const std::string &key, EVENT::IntVec &values) const
 Adds all integer values for the given key to values. More...
 
virtual EVENT::FloatVecgetFloatVals (const std::string &key, EVENT::FloatVec &values) const
 Adds all float values for the given key to values. More...
 
virtual EVENT::StringVecgetStringVals (const std::string &key, EVENT::StringVec &values) const
 Adds all float values for the given key to values. More...
 
virtual const EVENT::StringVecgetIntKeys (EVENT::StringVec &keys) const
 Returns a list of all keys of integer parameters.
 
virtual const EVENT::StringVecgetFloatKeys (EVENT::StringVec &keys) const
 Returns a list of all keys of float parameters.
 
virtual const EVENT::StringVecgetStringKeys (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.
 
- Public Member Functions inherited from EVENT::LCParameters
virtual ~LCParameters ()
 Destructor.
 
virtual IntVecgetIntVals (const std::string &key, IntVec &values) const =0
 Adds all integer values for the given key to values. More...
 
virtual FloatVecgetFloatVals (const std::string &key, FloatVec &values) const =0
 Adds all float values for the given key to values. More...
 
virtual StringVecgetStringVals (const std::string &key, StringVec &values) const =0
 Adds all float values for the given key to values. More...
 
virtual const StringVecgetIntKeys (StringVec &keys) const =0
 Returns a list of all keys of integer parameters.
 
virtual const StringVecgetFloatKeys (StringVec &keys) const =0
 Returns a list of all keys of float parameters.
 
virtual const StringVecgetStringKeys (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.
 
- Public Member Functions inherited from IMPL::AccessChecked
virtual int simpleUID () const
 

Protected Attributes

IntMap _intMap
 
FloatMap _floatMap
 
StringMap _stringMap
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly
 
int _id
 

Friends

class LCRunHeaderImpl
 
class LCEventImpl
 
class LCCollectionVec
 

Additional Inherited Members

- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess () throw ( EVENT::ReadOnlyException )
 
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )
 

Detailed Description

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.

Author
gaede
Version
Jun 23, 2004
See Also
LCRunHeader.parameters()
LCEvent.parameters()
LCCollection.parameters()

Member Function Documentation

FloatVec & IMPL::LCParametersImpl::getFloatVals ( const std::string &  key,
EVENT::FloatVec values 
) const
virtual

Adds all float values for the given key to values.

Returns a reference to values for convenience.

IntVec & IMPL::LCParametersImpl::getIntVals ( const std::string &  key,
EVENT::IntVec values 
) const
virtual

Adds all integer values for the given key to values.

Returns a reference to values for convenience.

StringVec & IMPL::LCParametersImpl::getStringVals ( const std::string &  key,
EVENT::StringVec values 
) const
virtual

Adds all float values for the given key to values.

Returns a reference to values for convenience.


The documentation for this class was generated from the following files: