MOOS

CProcessConfigReader Class Reference

Class for reading MOOS configuration files. More...

#include <ProcessConfigReader.h>

Inheritance diagram for CProcessConfigReader:

CMOOSFileReader List of all members.

Public Member Functions

std::string GetAppName ()
std::string GetFileName ()
void SetAppName (std::string sAppName)
bool GetConfigurationParam (std::string sAppName, std::string sParam, std::string &sVal)
 READ STRINGS.
bool GetConfigurationParam (std::string sAppName, std::string sParam, double &dfVal)
bool GetConfigurationParam (std::string sAppName, std::string sParam, bool &bVal)
bool GetConfigurationParam (std::string sAppName, std::string sParam, int &nVal)
bool GetConfigurationParam (std::string sAppName, std::string sParam, std::vector< double > &Vec, int &nRows, int &nCols)
bool GetConfigurationParam (std::string sParam, std::string &sVal)
bool GetConfigurationParam (std::string sParam, double &dfVal)
 READ DOUBLES.
bool GetConfigurationParam (std::string sParam, bool &bVal)
 READ BOOLS.
bool GetConfigurationParam (std::string sParam, int &nVal)
 READ INTS.
bool GetConfigurationParam (std::string sParam, std::vector< double > &Vec, int &nRows, int &nCols)
 READ VECTORS.
bool GetConfiguration (std::string sAppName, STRING_LIST &Params)

Public Attributes

std::string m_sAppName

Detailed Description

Class for reading MOOS configuration files.


Member Function Documentation

std::string CProcessConfigReader::GetAppName  ) 
 

returns the name of the application an instance of this class is concerned with

bool CProcessConfigReader::GetConfiguration std::string  sAppName,
STRING_LIST &  Params
 

return a list of strings of Token = Val for the specfied named application configuration block

bool CProcessConfigReader::GetConfigurationParam std::string  sParam,
std::vector< double > &  Vec,
int &  nRows,
int &  nCols
 

READ VECTORS.

read a vector<double> parameter for a Process "m_sName" (can be interprested as a matrix with (rows x cols)

bool CProcessConfigReader::GetConfigurationParam std::string  sParam,
int &  nVal
 

READ INTS.

read a int parameter for a Process "m_sName"

bool CProcessConfigReader::GetConfigurationParam std::string  sParam,
bool &  bVal
 

READ BOOLS.

read a bool parameter for a Process "m_sName"

bool CProcessConfigReader::GetConfigurationParam std::string  sParam,
double &  dfVal
 

READ DOUBLES.

read a double parameter for a Process "m_sName"

bool CProcessConfigReader::GetConfigurationParam std::string  sParam,
std::string &  sVal
 

read a string parameter for a Process "m_sName"

bool CProcessConfigReader::GetConfigurationParam std::string  sAppName,
std::string  sParam,
std::vector< double > &  Vec,
int &  nRows,
int &  nCols
 

read a vector<double> parameter for a named process

bool CProcessConfigReader::GetConfigurationParam std::string  sAppName,
std::string  sParam,
int &  nVal
 

read a integer parameter for a named process

bool CProcessConfigReader::GetConfigurationParam std::string  sAppName,
std::string  sParam,
bool &  bVal
 

read a bool parameter for a named process

bool CProcessConfigReader::GetConfigurationParam std::string  sAppName,
std::string  sParam,
double &  dfVal
 

read a string parameter for a named process

bool CProcessConfigReader::GetConfigurationParam std::string  sAppName,
std::string  sParam,
std::string &  sVal
 

READ STRINGS.

read a string parameter for a named process

std::string CProcessConfigReader::GetFileName  ) 
 

returns the name of the mission file this process is accessing

void CProcessConfigReader::SetAppName std::string  sAppName  ) 
 

set the name of the application (MOOSProcess) that this class shoud concern itself with (unless directed otherwise)


Member Data Documentation

std::string CProcessConfigReader::m_sAppName
 

the name of process an instance this class will handle unless told otherwise


The documentation for this class was generated from the following files:
Generated on Fri Sep 28 20:14:21 2007 for MOOSGenLib by  doxygen 1.4.6