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

Internal helper class that creates a new xml steering file with the parameter attributes lcioInType and lcioOutType for the processors as defined by the Processor subclasses. More...

#include <XMLFixCollTypes.h>

Public Member Functions

 XMLFixCollTypes (const std::string &fileName)
 
virtual ~XMLFixCollTypes ()
 
void parse (const std::string &filename)
 Parse the input file and write the fixed outputfile to filename. More...
 

Protected Member Functions

const char * getAttribute (TiXmlNode *node, const std::string &name)
 Return named attribute - throws ParseException if attribute doesn't exist. More...
 
TiXmlNodefindElement (TiXmlNode *node, const std::string &type, const std::string &attribute, const std::string &value)
 Helper method - finds child element of node with given type and attribute value. More...
 

Protected Attributes

TiXmlDocument_doc
 
std::string _fileName
 

Private Member Functions

 XMLFixCollTypes ()=delete
 
 XMLFixCollTypes (const marlin::XMLFixCollTypes &)=delete
 
XMLFixCollTypesoperator= (const marlin::XMLFixCollTypes &)=delete
 

Detailed Description

Internal helper class that creates a new xml steering file with the parameter attributes lcioInType and lcioOutType for the processors as defined by the Processor subclasses.

This is used by Marlin -f.

Author
F. Gaede, DESY
Version
Id:
XMLFixCollTypes.h,v 1.2 2007-03-06 08:05:07 gaede Exp

Definition at line 25 of file XMLFixCollTypes.h.

Constructor & Destructor Documentation

marlin::XMLFixCollTypes::XMLFixCollTypes ( const std::string fileName)

Definition at line 15 of file XMLFixCollTypes.cc.

marlin::XMLFixCollTypes::~XMLFixCollTypes ( )
virtual

Definition at line 19 of file XMLFixCollTypes.cc.

marlin::XMLFixCollTypes::XMLFixCollTypes ( )
privatedelete
marlin::XMLFixCollTypes::XMLFixCollTypes ( const marlin::XMLFixCollTypes )
privatedelete

Member Function Documentation

TiXmlNode * marlin::XMLFixCollTypes::findElement ( TiXmlNode node,
const std::string type,
const std::string attribute,
const std::string value 
)
protected

Helper method - finds child element of node with given type and attribute value.

Definition at line 241 of file XMLFixCollTypes.cc.

References TiXmlElement::Attribute(), TiXmlNode::IterateChildren(), and TiXmlNode::ToElement().

const char * marlin::XMLFixCollTypes::getAttribute ( TiXmlNode node,
const std::string name 
)
protected

Return named attribute - throws ParseException if attribute doesn't exist.

Definition at line 219 of file XMLFixCollTypes.cc.

References _fileName, TiXmlElement::Attribute(), std::string::c_str(), std::stringstream::str(), TiXmlNode::ToElement(), and TiXmlNode::Value().

Referenced by parse().

XMLFixCollTypes& marlin::XMLFixCollTypes::operator= ( const marlin::XMLFixCollTypes )
privatedelete
void marlin::XMLFixCollTypes::parse ( const std::string filename)

Member Data Documentation

TiXmlDocument* marlin::XMLFixCollTypes::_doc
protected

Definition at line 51 of file XMLFixCollTypes.h.

Referenced by parse().

std::string marlin::XMLFixCollTypes::_fileName
protected

Definition at line 53 of file XMLFixCollTypes.h.

Referenced by getAttribute(), and parse().


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