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 |
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.