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

List of all members.

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.
virtual EVENT::FloatVecgetFloatVals (const std::string &key, EVENT::FloatVec &values) const
 Adds all float values for the given key to values.
virtual EVENT::StringVecgetStringVals (const std::string &key, EVENT::StringVec &values) const
 Adds all float values for the given key to values.
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.

Friends

class LCRunHeaderImpl
class LCEventImpl
class LCCollectionVec

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

virtual EVENT::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.

Implements EVENT::LCParameters.

virtual EVENT::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.

Implements EVENT::LCParameters.

virtual EVENT::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.

Implements EVENT::LCParameters.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1