nidas  v1.2-1520
Public Member Functions | Private Attributes | List of all members
nidas::core::ProjectConfig Class Reference

#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::UTimegetBeginTime () const
 
void setBeginTime (const nidas::util::UTime &val)
 
const nidas::util::UTimegetEndTime () const
 
void setEndTime (const nidas::util::UTime &val)
 
void addEnvironmentVariable (const std::string &name, const std::string &value)
 Add an environment variable to this ProjectConfig. 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 ProjectConfig. More...
 
void initProject (Project &project) const throw (nidas::core::XMLException, nidas::util::InvalidParameterException)
 
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 _xmlName
 
nidas::util::UTime _beginTime
 
nidas::util::UTime _endTime
 
std::map< std::string,
std::string > 
_envVars
 

Constructor & Destructor Documentation

ProjectConfig::ProjectConfig ( )

Member Function Documentation

void ProjectConfig::addEnvironmentVariable ( const std::string &  name,
const std::string &  value 
)

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.

void ProjectConfig::fromDOMElement ( const xercesc::DOMElement *  node)
throw (nidas::util::InvalidParameterException
)
const nidas::util::UTime& nidas::core::ProjectConfig::getBeginTime ( ) const
inline
const nidas::util::UTime& nidas::core::ProjectConfig::getEndTime ( ) const
inline
std::map<std::string,std::string> nidas::core::ProjectConfig::getEnvironmentVariables ( ) const
inline

References _envVars.

const std::string& nidas::core::ProjectConfig::getName ( ) const
inline
const std::string& nidas::core::ProjectConfig::getXMLName ( ) const
inline
void ProjectConfig::initProject ( Project project) const
throw (nidas::core::XMLException,
nidas::util::InvalidParameterException
)
void ProjectConfig::putenv ( ) const

Update the process environment with the current list of environment variables in the ProjectConfig.

References _envVars, nidas::util::Process::getEnvVar(), getName(), and nidas::util::Process::setEnvVar().

void nidas::core::ProjectConfig::setBeginTime ( const nidas::util::UTime val)
inline

References _beginTime.

Referenced by ProjConfigIO::addConfigByTime().

void nidas::core::ProjectConfig::setEndTime ( const nidas::util::UTime val)
inline
void nidas::core::ProjectConfig::setName ( const std::string &  val)
inline

References _name.

Referenced by ProjConfigIO::addConfigByTime().

void nidas::core::ProjectConfig::setXMLName ( const std::string &  val)
inline

References _xmlName.

Referenced by ProjConfigIO::addConfigByTime().

xercesc::DOMElement * ProjectConfig::toDOMElement ( xercesc::DOMElement *  node) const
throw (xercesc::DOMException
)
xercesc::DOMElement * ProjectConfig::toDOMParent ( xercesc::DOMElement *  parent) const
throw (xercesc::DOMException
)

Member Data Documentation

nidas::util::UTime nidas::core::ProjectConfig::_beginTime
private

Referenced by getBeginTime(), and setBeginTime().

nidas::util::UTime nidas::core::ProjectConfig::_endTime
private

Referenced by getEndTime(), and setEndTime().

std::map<std::string,std::string> nidas::core::ProjectConfig::_envVars
private
std::string nidas::core::ProjectConfig::_name
private

Referenced by getName(), and setName().

std::string nidas::core::ProjectConfig::_xmlName
private

Referenced by getXMLName(), and setXMLName().


The documentation for this class was generated from the following files: