nidas v1.2.3
|
#include <ProjectConfigs.h>
Public Member Functions | |
ProjectConfigs () | |
~ProjectConfigs () | |
const ProjectConfig * | getConfig (const nidas::util::UTime &begin) const |
const ProjectConfig * | getConfig (const std::string &name) const |
const std::list< const ProjectConfig * > & | getConfigs () const |
void | addConfigByTime (ProjectConfig *val) |
Add a project configuration, inserting it in the list, which should be sorted by time. | |
void | addConfigByName (ProjectConfig *val) throw () |
Add a project configuration, replacing an existing configuration if the name matches, otherwise appending the configuration on the list. | |
void | removeConfig (const ProjectConfig *val) |
void | parseXML (const std::string &xmlFileName) |
void | writeXML (const std::string &xmlFileName) |
void | fromDOMElement (const xercesc::DOMElement *) |
xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent) const |
xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node) const |
Private Attributes | |
std::string | _xmlName |
std::list< const ProjectConfig * > | _constConfigs |
std::list< ProjectConfig * > | _configs |
ProjectConfigs::ProjectConfigs | ( | ) |
ProjectConfigs::~ProjectConfigs | ( | ) |
References _configs, and nidas::core::getSample().
void ProjectConfigs::addConfigByName | ( | ProjectConfig * | val | ) | ||
throw | ( | ) |
Add a project configuration, replacing an existing configuration if the name matches, otherwise appending the configuration on the list.
References nidas::core::ProjectConfig::getName(), and nidas::core::getSample().
Referenced by fromDOMElement().
void ProjectConfigs::addConfigByTime | ( | ProjectConfig * | val | ) |
Add a project configuration, inserting it in the list, which should be sorted by time.
If the beginning time is equal to the beginning time of an existing project configuration, and the end time is prior to or equal to the beginning time of the next configuration, the existing configuration is replaced. Exceptions are thrown if project configuration times are overlapping.
nidas::util::InvalidParameterException |
References _configs, _constConfigs, nidas::core::ProjectConfig::getBeginTime(), and nidas::core::getSample().
Referenced by ProjConfigIO::addConfigByTime(), and ProjConfigIO::termConfig().
nidas::util::InvalidParameterException |
References addConfigByName(), and nidas::core::getSample().
Referenced by parseXML().
const ProjectConfig * ProjectConfigs::getConfig | ( | const nidas::util::UTime & | begin | ) | const |
nidas::util::InvalidParameterException |
References _constConfigs, _xmlName, nidas::core::ProjectConfig::getBeginTime(), nidas::core::ProjectConfig::getEndTime(), and nidas::core::getSample().
Referenced by StatsProcess::listOutputSamples(), DataPrep::run(), StatsProcess::run(), and nidas::core::DSMServerApp::run().
const ProjectConfig * ProjectConfigs::getConfig | ( | const std::string & | name | ) | const |
nidas::util::InvalidParameterException |
References _constConfigs, _xmlName, nidas::core::ProjectConfig::getName(), and nidas::core::getSample().
const std::list< const ProjectConfig * > & ProjectConfigs::getConfigs | ( | ) | const |
References _constConfigs.
Referenced by ProjConfigIO::addConfigByTime(), ProjConfigIO::getConfig(), ProjConfigIO::getConfigForTime(), ProjConfigIO::listConfigs(), ProjConfigIO::termConfig(), and toDOMElement().
References _xmlName, fromDOMElement(), and nidas::core::getSample().
Referenced by StatsProcess::listOutputSamples(), DataPrep::run(), ProjConfigIO::run(), StatsProcess::run(), and nidas::core::DSMServerApp::run().
void ProjectConfigs::removeConfig | ( | const ProjectConfig * | val | ) |
References _configs, _constConfigs, and nidas::core::getSample().
Referenced by ProjConfigIO::termConfig().
xercesc::DOMElement * ProjectConfigs::toDOMElement | ( | xercesc::DOMElement * | node | ) | const |
xercesc::DOMException |
References getConfigs(), nidas::core::getSample(), and nidas::core::ProjectConfig::toDOMParent().
Referenced by toDOMParent(), and writeXML().
xercesc::DOMElement * ProjectConfigs::toDOMParent | ( | xercesc::DOMElement * | parent | ) | const |
xercesc::DOMException |
References nidas::core::DOMable::getNamespaceURI(), and toDOMElement().
|
private |
Referenced by addConfigByTime(), removeConfig(), and ~ProjectConfigs().
|
private |
Referenced by addConfigByTime(), getConfig(), getConfig(), getConfigs(), and removeConfig().
|
private |
Referenced by getConfig(), getConfig(), and parseXML().