UTIL::CollectionParameterMap Class Reference

Helper class for setting and retrieving an std::map<string,int> as collection parameters. More...

#include <UTIL/CollectionParameterMap.h>

List of all members.

Public Types

typedef std::map< std::string,
int > 
map_type

Public Member Functions

 CollectionParameterMap (const CollectionParameterMap &)
CollectionParameterMapoperator= (const CollectionParameterMap &)
 CollectionParameterMap (const std::string &keyName, const std::string &valueName, EVENT::LCCollection *col)
 Create CollectionParameterMap for given collection - read the collection parameters keyName and valueName if they exist.
 CollectionParameterMap (const std::string &keyName, const std::string &valueName, const EVENT::LCCollection *col)
 Create CollectionParameterMap for given collection - read the collection parameters keyName and valueName if they exist.
 ~CollectionParameterMap ()
 Update the collection parameters keyName and valueName when going out of scope.
map_type & map ()
 The std::map< std::string, int >.

Protected Member Functions

void init (const EVENT::LCCollection *col)

Detailed Description

Helper class for setting and retrieving an std::map<string,int> as collection parameters.

Depending on which constructor was used the collection parameters will be updated if an object of this class goes out of scope. The corresponding collection parameters will hold the current state of the map. If the a const LCCollection* was specified (read use case) no parameters will be updated.

See also:
LCCollection::getParameters()
LCParameters
Author:
F.Gaede, DESY
Version:
Id
CollectionParameterMap.h,v 1.1 2008-05-30 13:26:16 gaede Exp

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