Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

marlin::StringParameters Class Reference

#include <StringParameters.h>

List of all members.

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::string & getStringVal (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::ostream & operator<< (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 8 of file StringParameters.cc.

marlin::StringParameters::StringParameters const StringParameters sp  ) 
 

Definition at line 12 of file StringParameters.cc.

References _map.

marlin::StringParameters::~StringParameters  )  [virtual]
 

Definition at line 16 of file StringParameters.cc.


Member Function Documentation

void marlin::StringParameters::add const std::vector< std::string > &  tokens  ) 
 

Definition at line 29 of file StringParameters.cc.

References _map.

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

Definition at line 21 of file StringParameters.cc.

References _map.

Referenced by marlin::MarlinSteerCheck::MarlinSteerCheck(), marlin::CMProcessor::mergeParams(), marlin::XMLParser::parametersFromNode(), marlin::XMLParser::parse(), marlin::Parser::parse(), marlin::MarlinSteerCheck::parseXMLFile(), and marlin::CCProcessor::writeColsToParam().

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

Definition at line 37 of file StringParameters.cc.

References _map.

Referenced by marlin::CCProcessor::clearParameters(), and marlin::MarlinSteerCheck::parseXMLFile().

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

Definition at line 54 of file StringParameters.cc.

References _map, and marlin::floatVal().

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

Definition at line 79 of file StringParameters.cc.

References _map, marlin::floatVal(), and EVENT::FloatVec.

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

Definition at line 47 of file StringParameters.cc.

References _map, and marlin::intVal().

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

Definition at line 71 of file StringParameters.cc.

References _map, marlin::intVal(), and EVENT::IntVec.

StringVec & marlin::StringParameters::getStringKeys StringVec stringVec  ) 
 

Definition at line 94 of file StringParameters.cc.

References _map, and EVENT::StringVec.

Referenced by marlin::CCProcessor::addColsFromParam(), marlin::MarlinSteerCheck::saveAsXMLFile(), and marlin::CCProcessor::writeToXML().

const std::string & marlin::StringParameters::getStringVal const std::string &  key  ) 
 

Definition at line 62 of file StringParameters.cc.

References _map.

Referenced by createProcessors(), marlin::Parser::parse(), and marlin::MarlinSteerCheck::parseXMLFile().

StringVec & marlin::StringParameters::getStringVals const std::string &  key,
StringVec stringVec
 

Definition at line 87 of file StringParameters.cc.

References _map, and EVENT::StringVec.

Referenced by marlin::CCProcessor::addColsFromParam(), marlin::CCProcessor::clearParameters(), marlin::MarlinSteerCheck::parseXMLFile(), marlin::MarlinSteerCheck::saveAsXMLFile(), and marlin::CCProcessor::writeToXML().

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

Definition at line 42 of file StringParameters.cc.

References _map.

Referenced by marlin::CCProcessor::clearParameters(), and marlin::CMProcessor::mergeParams().


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
StringParameters p
[friend]
 

Definition at line 112 of file StringParameters.cc.


Member Data Documentation

ParametersMap marlin::StringParameters::_map [protected]
 

Definition at line 63 of file StringParameters.h.

Referenced by add(), erase(), getFloatVal(), getFloatVals(), getIntVal(), getIntVals(), getStringKeys(), getStringVal(), getStringVals(), isParameterSet(), marlin::operator<<(), and StringParameters().


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:31 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1