nidas
v1.2-1520
|
Public Types | |
enum | tasks { NUTTIN_TO_DO, LIST_CONFIG_NAMES, LIST_CONFIGS, ADD_CONFIG_BY_TIME, TERM_CONFIG, GET_CONFIG, GET_CONFIG_FOR_TIME } |
Public Member Functions | |
ProjConfigIO () | |
int | parseRunstring (int argc, char **argv) |
int | run () |
void | listConfigs (bool allinfo) throw (nidas::core::XMLException, n_u::InvalidParameterException) |
void | addConfigByTime () throw (nidas::core::XMLException, n_u::InvalidParameterException,n_u::IOException) |
void | termConfig () throw (nidas::core::XMLException, n_u::InvalidParameterException,n_u::IOException) |
void | getConfig () |
void | getConfigForTime () |
Static Public Member Functions | |
static int | usage (const char *argv0) |
Private Attributes | |
string | xmlFile |
XML file containing project configurations. More... | |
enum tasks | task |
What to do, per runstring arguments. More... | |
string | cname |
Name of project configuration. More... | |
n_u::UTime | cbegin |
Time of start of project configuration. More... | |
n_u::UTime | cend |
Time of end of project configuration. More... | |
string | cxml |
Name of xml containing nidas configuration for a project. More... | |
string | timeformat |
ProjectConfigs | configs |
enum ProjConfigIO::tasks |
ProjConfigIO::ProjConfigIO | ( | ) |
void ProjConfigIO::addConfigByTime | ( | ) | ||
throw | ( | nidas::core::XMLException, | ||
n_u::InvalidParameterException, | ||||
n_u::IOException | ||||
) |
References nidas::core::ProjectConfigs::addConfigByTime(), cbegin, cend, cname, configs, cxml, nidas::core::ProjectConfigs::getConfigs(), nidas::core::ProjectConfig::getName(), nidas::core::ProjectConfig::setBeginTime(), nidas::core::ProjectConfig::setEndTime(), nidas::core::ProjectConfig::setName(), nidas::core::ProjectConfig::setXMLName(), nidas::core::ProjectConfigs::writeXML(), and xmlFile.
Referenced by run().
void ProjConfigIO::getConfig | ( | ) |
References cname, configs, nidas::core::ProjectConfig::getBeginTime(), nidas::core::ProjectConfigs::getConfigs(), nidas::core::ProjectConfig::getEndTime(), nidas::core::ProjectConfig::getName(), nidas::core::ProjectConfig::getXMLName(), timeformat, nidas::util::UTime::toUsecs(), and USECS_PER_SEC.
Referenced by run().
void ProjConfigIO::getConfigForTime | ( | ) |
References cbegin, configs, nidas::core::ProjectConfig::getBeginTime(), nidas::core::ProjectConfigs::getConfigs(), nidas::core::ProjectConfig::getEndTime(), nidas::core::ProjectConfig::getName(), nidas::core::ProjectConfig::getXMLName(), timeformat, nidas::util::UTime::toUsecs(), and USECS_PER_SEC.
Referenced by run().
void ProjConfigIO::listConfigs | ( | bool | allinfo | ) | |
throw | ( | nidas::core::XMLException, | |||
n_u::InvalidParameterException | |||||
) |
int ProjConfigIO::parseRunstring | ( | int | argc, |
char ** | argv | ||
) |
References ADD_CONFIG_BY_TIME, cbegin, cend, cname, cxml, GET_CONFIG, GET_CONFIG_FOR_TIME, LIST_CONFIG_NAMES, LIST_CONFIGS, NUTTIN_TO_DO, nidas::util::UTime::parse(), task, TERM_CONFIG, timeformat, usage(), USECS_PER_DAY, nidas::util::Exception::what(), and xmlFile.
Referenced by main().
int ProjConfigIO::run | ( | ) |
References ADD_CONFIG_BY_TIME, addConfigByTime(), configs, GET_CONFIG, GET_CONFIG_FOR_TIME, getConfig(), getConfigForTime(), LIST_CONFIG_NAMES, LIST_CONFIGS, listConfigs(), nidas::core::ProjectConfigs::parseXML(), task, TERM_CONFIG, termConfig(), nidas::util::Exception::what(), and xmlFile.
Referenced by main().
void ProjConfigIO::termConfig | ( | ) | ||
throw | ( | nidas::core::XMLException, | ||
n_u::InvalidParameterException, | ||||
n_u::IOException | ||||
) |
|
static |
Referenced by parseRunstring().
|
private |
Time of start of project configuration.
Referenced by addConfigByTime(), getConfigForTime(), and parseRunstring().
|
private |
Time of end of project configuration.
Referenced by addConfigByTime(), parseRunstring(), and termConfig().
|
private |
Name of project configuration.
Referenced by addConfigByTime(), getConfig(), and parseRunstring().
|
private |
Referenced by addConfigByTime(), getConfig(), getConfigForTime(), run(), and termConfig().
|
private |
Name of xml containing nidas configuration for a project.
Referenced by addConfigByTime(), and parseRunstring().
|
private |
What to do, per runstring arguments.
Referenced by parseRunstring(), and run().
|
private |
Referenced by getConfig(), getConfigForTime(), and parseRunstring().
|
private |
XML file containing project configurations.
Referenced by addConfigByTime(), parseRunstring(), run(), and termConfig().