#include <GeometryConfiguration.h>
Public Member Functions | |
virtual bool | doValidation () const |
Return a flag whether to do xml validation or not. | |
virtual void | dumpFileList (void) const |
Print out the list of files. | |
GeometryConfiguration (const edm::ParameterSet &p) | |
virtual const std::vector < std::string > & | getFileList (void) const |
Return a list of files as a vector of strings. | |
virtual std::string | getSchemaLocation () const |
Return the Schema Location. | |
virtual const std::vector < std::string > & | getURLList (void) const |
Return a list of urls as a vector of strings. | |
int | readConfig (const std::string &filename) |
Reads in a configuration file and parses it. | |
virtual | ~GeometryConfiguration () |
Private Attributes | |
std::string | dummyLocation_ |
std::vector< std::string > | emptyStrings_ |
std::vector< std::string > | files_ |
std::vector< std::string > | relFiles_ |
May 23, 2006: Michael Case: This class provides the filenames to the DDLParser from the parameter-set passed by XMLIdealGeometryESSource. This removes the dependency on the Configuration Language of the DDD and moves the list of XML files to the parameter-set for provenance.
Definition at line 20 of file GeometryConfiguration.h.
GeometryConfiguration::GeometryConfiguration | ( | const edm::ParameterSet & | pset | ) |
Editted By On Michael Case Sun Nov 13 2005
Definition at line 17 of file GeometryConfiguration.cc.
References emptyStrings_, files_, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), and relFiles_.
: dummyLocation_("") { relFiles_ = pset.getParameter<std::vector<std::string> >("geomXMLFiles"); for (std::vector<std::string>::const_iterator rit = relFiles_.begin(), ritEnd = relFiles_.end(); rit != ritEnd; ++rit ) { edm::FileInPath fp(*rit); files_.push_back(fp.fullPath()); emptyStrings_.push_back(""); } }
GeometryConfiguration::~GeometryConfiguration | ( | ) | [virtual] |
Definition at line 27 of file GeometryConfiguration.cc.
{ }
bool GeometryConfiguration::doValidation | ( | void | ) | const [virtual] |
Return a flag whether to do xml validation or not.
Implements DDLDocumentProvider.
Definition at line 36 of file GeometryConfiguration.cc.
References LogDebug.
{ LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl; return false; }
void GeometryConfiguration::dumpFileList | ( | void | ) | const [virtual] |
Print out the list of files.
Implements DDLDocumentProvider.
Definition at line 59 of file GeometryConfiguration.cc.
References gather_cfg::cout, and files_.
const std::vector< std::string > & GeometryConfiguration::getFileList | ( | void | ) | const [virtual] |
Return a list of files as a vector of strings.
Implements DDLDocumentProvider.
Definition at line 42 of file GeometryConfiguration.cc.
References files_.
{ return files_; }
std::string GeometryConfiguration::getSchemaLocation | ( | void | ) | const [virtual] |
Return the Schema Location.
Implements DDLDocumentProvider.
Definition at line 30 of file GeometryConfiguration.cc.
References dummyLocation_.
{ edm::LogError("GeometryConfiguration") << " This sub-class of DDLDocumentProvider does not USE XML parsing!!!" << std::endl; return dummyLocation_; }
const std::vector< std::string > & GeometryConfiguration::getURLList | ( | void | ) | const [virtual] |
Return a list of urls as a vector of strings.
The EDM should not allow URLs because of provenance. This vector will always be empty.
Implements DDLDocumentProvider.
Definition at line 51 of file GeometryConfiguration.cc.
References emptyStrings_, and LogDebug.
{ LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl; // return relFiles_; return emptyStrings_; }
int GeometryConfiguration::readConfig | ( | const std::string & | filename | ) | [virtual] |
Reads in a configuration file and parses it.
Implements DDLDocumentProvider.
Definition at line 66 of file GeometryConfiguration.cc.
{ edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl; return 0; }
std::string GeometryConfiguration::dummyLocation_ [private] |
Definition at line 55 of file GeometryConfiguration.h.
Referenced by getSchemaLocation().
std::vector< std::string > GeometryConfiguration::emptyStrings_ [private] |
Definition at line 54 of file GeometryConfiguration.h.
Referenced by GeometryConfiguration(), and getURLList().
std::vector< std::string > GeometryConfiguration::files_ [private] |
Definition at line 52 of file GeometryConfiguration.h.
Referenced by dumpFileList(), GeometryConfiguration(), and getFileList().
std::vector< std::string > GeometryConfiguration::relFiles_ [private] |
Definition at line 53 of file GeometryConfiguration.h.
Referenced by GeometryConfiguration().