Marlin
01.17.01
|
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... | |
TiXmlNode * | findElement (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 | |
XMLFixCollTypes & | operator= (const marlin::XMLFixCollTypes &)=delete |
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.
Definition at line 25 of file XMLFixCollTypes.h.
marlin::XMLFixCollTypes::XMLFixCollTypes | ( | const std::string & | fileName | ) |
Definition at line 15 of file XMLFixCollTypes.cc.
|
virtual |
Definition at line 19 of file XMLFixCollTypes.cc.
|
privatedelete |
|
privatedelete |
|
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().
|
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().
|
privatedelete |
void marlin::XMLFixCollTypes::parse | ( | const std::string & | filename | ) |
Parse the input file and write the fixed outputfile to filename.
Definition at line 22 of file XMLFixCollTypes.cc.
References _doc, _fileName, std::map< K, T >::begin(), marlin::ProcessorParameter::defaultValue(), marlin::ProcessorParameter::description(), std::map< K, T >::end(), std::set< K >::end(), std::endl(), TiXmlDocument::ErrorCol(), TiXmlDocument::ErrorDesc(), TiXmlDocument::ErrorRow(), std::set< K >::find(), getAttribute(), marlin::Processor::getLCIOInType(), marlin::Processor::getLCIOOutType(), marlin::ProcessorMgr::getProcessor(), std::set< K >::insert(), TiXmlNode::InsertBeforeChild(), TiXmlNode::InsertEndChild(), marlin::ProcessorMgr::instance(), marlin::Processor::isInputCollectionName(), marlin::Processor::isOutputCollectionName(), TiXmlNode::IterateChildren(), TiXmlDocument::LoadFile(), marlin::ProcessorParameter::name(), position, marlin::Processor::procMap(), TiXmlDocument::RootElement(), TiXmlDocument::SaveFile(), TiXmlElement::SetAttribute(), TiXmlNode::SetValue(), std::stringstream::str(), TiXmlNode::ToElement(), and marlin::ProcessorParameter::type().
|
protected |
Definition at line 51 of file XMLFixCollTypes.h.
Referenced by parse().
|
protected |
Definition at line 53 of file XMLFixCollTypes.h.
Referenced by getAttribute(), and parse().