nidas v1.2.3
|
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. | |
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. | |
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 | _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 | ( | ) |
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, and nidas::core::getSample().
nidas::util::InvalidParameterException |
References _envVars, _resSecs, getName(), nidas::core::getSample(), setDescription(), and setName().
|
inline |
References _desc.
Referenced by toDOMElement().
|
inline |
References _envVars.
|
inline |
References _name.
Referenced by fromDOMElement(), putenv(), and toDOMElement().
|
inline |
References _resSecs.
Referenced by toDOMElement().
void Dataset::putenv | ( | ) | const |
Update the process environment with the current list of environment variables in the Dataset.
References _envVars, getName(), and nidas::core::getSample().
Referenced by nidas::core::NidasApp::getDataset().
References _desc, and nidas::core::getSample().
Referenced by fromDOMElement().
References _name, and nidas::core::getSample().
Referenced by fromDOMElement().
References _resSecs, and nidas::core::getSample().
xercesc::DOMElement * Dataset::toDOMElement | ( | xercesc::DOMElement * | node | ) | const |
xercesc::DOMException |
References _envVars, getDescription(), getName(), nidas::core::DOMable::getNamespaceURI(), getResolutionSecs(), and nidas::core::getSample().
Referenced by toDOMParent().
xercesc::DOMElement * Dataset::toDOMParent | ( | xercesc::DOMElement * | parent | ) | const |
xercesc::DOMException |
References nidas::core::DOMable::getNamespaceURI(), and toDOMElement().
|
private |
Referenced by getDescription(), and setDescription().
|
private |
Referenced by addEnvironmentVariable(), fromDOMElement(), getEnvironmentVariables(), putenv(), and toDOMElement().
|
private |
Referenced by fromDOMElement(), getResolutionSecs(), and setResolutionSecs().