nidas v1.2.3
|
#include <ProjectConfigs.h>
Public Member Functions | |
ProjectConfig () | |
const std::string & | getName () const |
void | setName (const std::string &val) |
const std::string & | getXMLName () const |
void | setXMLName (const std::string &val) |
const nidas::util::UTime & | getBeginTime () const |
Returns UTime::MIN if unset. | |
void | setBeginTime (const nidas::util::UTime &val) |
const nidas::util::UTime & | getEndTime () const |
Returns UTime::MAX if unset. | |
void | setEndTime (const nidas::util::UTime &val) |
void | addEnvironmentVariable (const std::string &name, const std::string &value) |
Add an environment variable to this ProjectConfig. | |
std::map< std::string, std::string > | getEnvironmentVariables () const |
void | putenv () const |
Update the process environment with the current list of environment variables in the ProjectConfig. | |
void | initProject (Project &project) const |
void | fromDOMElement (const xercesc::DOMElement *) |
xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent) const |
xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node) const |
Private Attributes | |
std::string | _name |
std::string | _xmlName |
nidas::util::UTime | _beginTime |
nidas::util::UTime | _endTime |
std::map< std::string, std::string > | _envVars |
ProjectConfig::ProjectConfig | ( | ) |
Add an environment variable to this ProjectConfig.
The actual process environment is not effected. After doing addEnvironmentVariable() one or more times, use ProjectConfig::putenv() to update the actual process environment. Set value to an empty string to remove a variable from the environment.
References _envVars, and nidas::core::getSample().
nidas::util::InvalidParameterException |
References _envVars, getName(), nidas::core::getSample(), setBeginTime(), setEndTime(), setName(), and setXMLName().
|
inline |
Returns UTime::MIN if unset.
References _beginTime.
Referenced by nidas::core::ProjectConfigs::addConfigByTime(), ProjConfigIO::getConfig(), nidas::core::ProjectConfigs::getConfig(), ProjConfigIO::getConfigForTime(), ProjConfigIO::listConfigs(), DataPrep::run(), StatsProcess::run(), and toDOMElement().
|
inline |
Returns UTime::MAX if unset.
References _endTime.
Referenced by ProjConfigIO::getConfig(), nidas::core::ProjectConfigs::getConfig(), ProjConfigIO::getConfigForTime(), ProjConfigIO::listConfigs(), DataPrep::run(), StatsProcess::run(), and toDOMElement().
|
inline |
References _envVars.
|
inline |
|
inline |
project | the project, by reference. |
References getXMLName(), nidas::core::parseXMLConfigFile(), and putenv().
Referenced by StatsProcess::listOutputSamples(), DataPrep::run(), StatsProcess::run(), and nidas::core::DSMServerApp::run().
void ProjectConfig::putenv | ( | ) | const |
Update the process environment with the current list of environment variables in the ProjectConfig.
References _envVars, getName(), and nidas::core::getSample().
Referenced by initProject().
|
inline |
References _beginTime, and nidas::core::getSample().
Referenced by fromDOMElement().
|
inline |
References _endTime, and nidas::core::getSample().
Referenced by fromDOMElement().
References _name, and nidas::core::getSample().
Referenced by ProjConfigIO::addConfigByTime(), and fromDOMElement().
References _xmlName, and nidas::core::getSample().
Referenced by fromDOMElement().
xercesc::DOMElement * ProjectConfig::toDOMElement | ( | xercesc::DOMElement * | node | ) | const |
xercesc::DOMException |
References _envVars, getBeginTime(), getEndTime(), getName(), nidas::core::DOMable::getNamespaceURI(), nidas::core::getSample(), and getXMLName().
Referenced by toDOMParent().
xercesc::DOMElement * ProjectConfig::toDOMParent | ( | xercesc::DOMElement * | parent | ) | const |
xercesc::DOMException |
References nidas::core::DOMable::getNamespaceURI(), and toDOMElement().
Referenced by nidas::core::ProjectConfigs::toDOMElement().
|
private |
Referenced by getBeginTime(), and setBeginTime().
|
private |
Referenced by getEndTime(), and setEndTime().
|
private |
Referenced by addEnvironmentVariable(), fromDOMElement(), getEnvironmentVariables(), putenv(), and toDOMElement().
|
private |
Referenced by getXMLName(), and setXMLName().