Marlin  01.17.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Friends | List of all members
marlin::StringParameters Class Reference

Simple parameters class for Marlin. More...

#include <StringParameters.h>

Public Member Functions

 StringParameters ()
 
 StringParameters (const StringParameters &sp)
 
void add (const std::string &key, const std::vector< std::string > &values)
 
void add (const std::vector< std::string > &tokens)
 
void erase (const std::string &key)
 
bool isParameterSet (const std::string &key)
 
int getIntVal (const std::string &key)
 
float getFloatVal (const std::string &key)
 
const std::stringgetStringVal (const std::string &key)
 
IntVecgetIntVals (const std::string &key, IntVec &intVec)
 
FloatVecgetFloatVals (const std::string &key, FloatVec &floatVec)
 
StringVecgetStringVals (const std::string &key, StringVec &stringVec)
 
StringVecgetStringKeys (StringVec &stringVec)
 
virtual ~StringParameters ()
 

Protected Attributes

ParametersMap _map {}
 

Friends

std::ostreamoperator<< (std::ostream &, StringParameters &)
 

Detailed Description

Simple parameters class for Marlin.

Holds named parameters as string vectors.

Author
F. Gaede, DESY
Version
Id:
StringParameters.h,v 1.5 2006-11-10 11:56:07 engels Exp

Definition at line 34 of file StringParameters.h.

Constructor & Destructor Documentation

marlin::StringParameters::StringParameters ( )

Definition at line 10 of file StringParameters.cc.

marlin::StringParameters::StringParameters ( const StringParameters sp)

Definition at line 14 of file StringParameters.cc.

marlin::StringParameters::~StringParameters ( )
virtual

Definition at line 18 of file StringParameters.cc.

Member Function Documentation

void marlin::StringParameters::add ( const std::string key,
const std::vector< std::string > &  values 
)
void marlin::StringParameters::add ( const std::vector< std::string > &  tokens)

Definition at line 31 of file StringParameters.cc.

References _map, and std::vector< T >::size().

void marlin::StringParameters::erase ( const std::string key)

Definition at line 39 of file StringParameters.cc.

References _map, and std::map< K, T >::erase().

Referenced by GParamDelegate::setModelData().

float marlin::StringParameters::getFloatVal ( const std::string key)

Definition at line 56 of file StringParameters.cc.

References _map, and marlin::floatVal().

FloatVec & marlin::StringParameters::getFloatVals ( const std::string key,
FloatVec floatVec 
)

Definition at line 81 of file StringParameters.cc.

References _map, and marlin::floatVal().

int marlin::StringParameters::getIntVal ( const std::string key)

Definition at line 49 of file StringParameters.cc.

References _map, and marlin::intVal().

Referenced by marlin::ProcessorEventSeeder::registerProcessor().

IntVec & marlin::StringParameters::getIntVals ( const std::string key,
IntVec intVec 
)

Definition at line 73 of file StringParameters.cc.

References _map, and marlin::intVal().

StringVec & marlin::StringParameters::getStringKeys ( StringVec stringVec)
const std::string & marlin::StringParameters::getStringVal ( const std::string key)
StringVec & marlin::StringParameters::getStringVals ( const std::string key,
StringVec stringVec 
)

Definition at line 89 of file StringParameters.cc.

References _map.

bool marlin::StringParameters::isParameterSet ( const std::string key)

Definition at line 44 of file StringParameters.cc.

References _map, and std::map< K, T >::size().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream s,
StringParameters p 
)
friend

Member Data Documentation

ParametersMap marlin::StringParameters::_map {}
protected

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