nidas
v1.2-1520
|
A Dataset is a named collection of parameters, that are used in data processing. More...
#include <Datasets.h>
Public Member Functions | |
Dataset () | |
const std::string & | getName () const |
void | setName (const std::string &val) |
const std::string & | getDescription () const |
void | setDescription (const std::string &val) |
float | getResolutionSecs () const |
void | setResolutionSecs (float val) |
void | addEnvironmentVariable (const std::string &name, const std::string &value) |
Add an environment variable to this Dataset. More... | |
std::map< std::string, std::string > | getEnvironmentVariables () const |
void | putenv () const |
Update the process environment with the current list of environment variables in the Dataset. More... | |
void | fromDOMElement (const xercesc::DOMElement *) throw (nidas::util::InvalidParameterException) |
xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent) const throw (xercesc::DOMException) |
xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node) const throw (xercesc::DOMException) |
Private Attributes | |
std::string | _name |
std::string | _desc |
float | _resSecs |
std::map< std::string, std::string > | _envVars |
A Dataset is a named collection of parameters, that are used in data processing.
In addition to a name, a long-winded description, a resolution in seconds, there are one or more name=value string parameters which are typically set in a Unix process environment.
Dataset::Dataset | ( | ) |
void Dataset::addEnvironmentVariable | ( | const std::string & | name, |
const std::string & | value | ||
) |
Add an environment variable to this Dataset.
The actual process environment is not effected. After doing addEnvironmentVariable() one or more times, use Dataset::putenv() to update the actual process environment. Set value to an empty string to remove a variable from the environment.
References _envVars.
void Dataset::fromDOMElement | ( | const xercesc::DOMElement * | node | ) | |
throw | ( | nidas::util::InvalidParameterException | |||
) |
References nidas::core::XDOMAttr::getName(), and nidas::core::XDOMElement::getNodeName().
Referenced by nidas::core::Datasets::fromDOMElement().
|
inline |
References _desc.
|
inline |
References _envVars.
Referenced by DatasetsApp::showEnv().
|
inline |
References _name.
Referenced by DatasetsApp::listDatasetNames(), putenv(), nidas::core::Datasets::removeDataset(), and DatasetsApp::showEnv().
|
inline |
References _resSecs.
Referenced by StatsProcess::getDataset().
void Dataset::putenv | ( | ) | const |
Update the process environment with the current list of environment variables in the Dataset.
References _envVars, getName(), and nidas::util::Process::setEnvVar().
Referenced by StatsProcess::getDataset(), and nidas::core::NidasApp::throw().
|
inline |
References _desc.
|
inline |
References _name.
|
inline |
References _resSecs.
xercesc::DOMElement * Dataset::toDOMElement | ( | xercesc::DOMElement * | node | ) | const |
throw | ( | xercesc::DOMException | |||
) |
xercesc::DOMElement * Dataset::toDOMParent | ( | xercesc::DOMElement * | parent | ) | const |
throw | ( | xercesc::DOMException | |||
) |
References nidas::core::DOMable::getNamespaceURI().
Referenced by nidas::core::Datasets::toDOMElement().
|
private |
Referenced by getDescription(), and setDescription().
|
private |
Referenced by addEnvironmentVariable(), getEnvironmentVariables(), and putenv().
|
private |
Referenced by getResolutionSecs(), and setResolutionSecs().