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

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

#include <UTIL/CollectionParameterMap.h>

Public Types

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

Public Member Functions

 CollectionParameterMap (const std::string &keyName, const std::string &valueName, 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 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 LCCollection *col)
 

Protected Attributes

std::string _keyName
 
std::string _valueName
 
LCCollection_col
 
map_type _map
 

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: