#include <ProcessConfigurationImpl.h>
Public Member Functions | |
ProcessConfigurationImpl (int argc, char *argv[]) | |
virtual | ~ProcessConfigurationImpl () |
bool | isHelpNeeded () const |
void | printHelp () const |
void | load (const ConfigDirs &configDirs) |
const std::string & | getLogConfigFile () const |
const std::string & | getCMWConfigFile () const |
const std::string & | getMsgConfigFile () const |
const std::string & | getLabMsgConfigFile () const |
const std::string & | getCMWServerName () const |
void | setCMWServerName (const std::string &name) |
bool | isInTimingSimulationMode () const |
LoggingMode::LoggingMode | getLoggingMode () const |
bool | isDefined (const std::string &tag) const |
std::string | getStringValue (const std::string &tag) const |
int | getIntValue (const std::string &tag) const |
bool | getBoolValue (const std::string &tag) const |
Private Attributes | |
CMW::Util::CmdOptions | cmdOptions_ |
CMW::Util::Properties | properties_ |
std::string | fesaCfgFile_ |
std::string | logCfgFile_ |
std::string | msgCfgFile_ |
std::string | msgLabCfgFile_ |
std::string | cmwCfgFile_ |
std::string | cmwServerName_ |
bool | timingSimulationMode_ |
std::string | timingSimulationCfgFile_ |
LoggingMode::LoggingMode | loggingMode_ |
Definition at line 18 of file ProcessConfigurationImpl.h.
fesa::ProcessConfigurationImpl::ProcessConfigurationImpl | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 79 of file ProcessConfigurationImpl.cpp.
References cmdOptions_.
fesa::ProcessConfigurationImpl::~ProcessConfigurationImpl | ( | ) | [virtual] |
Definition at line 97 of file ProcessConfigurationImpl.cpp.
bool fesa::ProcessConfigurationImpl::getBoolValue | ( | const std::string & | tag | ) | const |
Definition at line 312 of file ProcessConfigurationImpl.cpp.
References FesaErrorCFGParameterIsNotBoolean, and getStringValue().
const std::string & fesa::ProcessConfigurationImpl::getCMWConfigFile | ( | ) | const |
Definition at line 223 of file ProcessConfigurationImpl.cpp.
References cmwCfgFile_.
const std::string & fesa::ProcessConfigurationImpl::getCMWServerName | ( | ) | const |
Definition at line 251 of file ProcessConfigurationImpl.cpp.
References cmwServerName_.
int fesa::ProcessConfigurationImpl::getIntValue | ( | const std::string & | tag | ) | const |
Definition at line 296 of file ProcessConfigurationImpl.cpp.
References FesaErrorCFGParameterIsNotNumeric, and getStringValue().
const std::string & fesa::ProcessConfigurationImpl::getLabMsgConfigFile | ( | ) | const |
Definition at line 237 of file ProcessConfigurationImpl.cpp.
References msgLabCfgFile_.
const std::string & fesa::ProcessConfigurationImpl::getLogConfigFile | ( | ) | const |
Definition at line 216 of file ProcessConfigurationImpl.cpp.
References logCfgFile_.
LoggingMode::LoggingMode fesa::ProcessConfigurationImpl::getLoggingMode | ( | ) | const |
Definition at line 265 of file ProcessConfigurationImpl.cpp.
References loggingMode_.
const std::string & fesa::ProcessConfigurationImpl::getMsgConfigFile | ( | ) | const |
Definition at line 230 of file ProcessConfigurationImpl.cpp.
References msgCfgFile_.
std::string fesa::ProcessConfigurationImpl::getStringValue | ( | const std::string & | tag | ) | const |
Definition at line 284 of file ProcessConfigurationImpl.cpp.
References FesaErrorCFGParameterNotFound, and properties_.
Referenced by getBoolValue(), and getIntValue().
bool fesa::ProcessConfigurationImpl::isDefined | ( | const std::string & | tag | ) | const |
Definition at line 272 of file ProcessConfigurationImpl.cpp.
References properties_.
bool fesa::ProcessConfigurationImpl::isHelpNeeded | ( | ) | const |
Definition at line 103 of file ProcessConfigurationImpl.cpp.
References cmdOptions_.
bool fesa::ProcessConfigurationImpl::isInTimingSimulationMode | ( | ) | const |
Definition at line 244 of file ProcessConfigurationImpl.cpp.
References timingSimulationMode_.
void fesa::ProcessConfigurationImpl::load | ( | const ConfigDirs & | configDirs | ) |
Definition at line 121 of file ProcessConfigurationImpl.cpp.
References cmdOptions_, cmwCfgFile_, cmwServerName_, fesaCfgFile_, fesa::PropertyTag::INSTANCE_FILE, logCfgFile_, loggingMode_, msgCfgFile_, msgLabCfgFile_, fesa::PropertyTag::NO_RT_SCHEDULING, properties_, fesa::PropertyTag::TIMING_SIMULATION, timingSimulationCfgFile_, timingSimulationMode_, fesa::LoggingMode::verbose, and fesa::LoggingMode::veryVerbose.
void fesa::ProcessConfigurationImpl::printHelp | ( | ) | const |
Definition at line 114 of file ProcessConfigurationImpl.cpp.
References cmdOptions_.
void fesa::ProcessConfigurationImpl::setCMWServerName | ( | const std::string & | name | ) |
Definition at line 258 of file ProcessConfigurationImpl.cpp.
References cmwServerName_.
CMW::Util::CmdOptions fesa::ProcessConfigurationImpl::cmdOptions_ [private] |
Definition at line 41 of file ProcessConfigurationImpl.h.
Referenced by isHelpNeeded(), load(), printHelp(), and ProcessConfigurationImpl().
std::string fesa::ProcessConfigurationImpl::cmwCfgFile_ [private] |
Definition at line 47 of file ProcessConfigurationImpl.h.
Referenced by getCMWConfigFile(), and load().
std::string fesa::ProcessConfigurationImpl::cmwServerName_ [private] |
Definition at line 48 of file ProcessConfigurationImpl.h.
Referenced by getCMWServerName(), load(), and setCMWServerName().
std::string fesa::ProcessConfigurationImpl::fesaCfgFile_ [private] |
Definition at line 43 of file ProcessConfigurationImpl.h.
Referenced by load().
std::string fesa::ProcessConfigurationImpl::logCfgFile_ [private] |
Definition at line 44 of file ProcessConfigurationImpl.h.
Referenced by getLogConfigFile(), and load().
Definition at line 51 of file ProcessConfigurationImpl.h.
Referenced by getLoggingMode(), and load().
std::string fesa::ProcessConfigurationImpl::msgCfgFile_ [private] |
Definition at line 45 of file ProcessConfigurationImpl.h.
Referenced by getMsgConfigFile(), and load().
std::string fesa::ProcessConfigurationImpl::msgLabCfgFile_ [private] |
Definition at line 46 of file ProcessConfigurationImpl.h.
Referenced by getLabMsgConfigFile(), and load().
CMW::Util::Properties fesa::ProcessConfigurationImpl::properties_ [private] |
Definition at line 42 of file ProcessConfigurationImpl.h.
Referenced by getStringValue(), isDefined(), and load().
std::string fesa::ProcessConfigurationImpl::timingSimulationCfgFile_ [private] |
Definition at line 50 of file ProcessConfigurationImpl.h.
Referenced by load().
bool fesa::ProcessConfigurationImpl::timingSimulationMode_ [private] |
Definition at line 49 of file ProcessConfigurationImpl.h.
Referenced by isInTimingSimulationMode(), and load().