1 #ifndef CARMA_DBMS_DBCONFIGURATOR_H
2 #define CARMA_DBMS_DBCONFIGURATOR_H
59 std::map<carma::dbms::MonitorAggregateType,std::string>
180 std::map<std::string,std::string> pairs_;
181 std::map <MonitorAverageType, std::string> averageType2String_;
182 std::map <MonitorDataAreaType, std::string> areaType2String_;
183 std::map <MonitorAggregateType, std::string> aggType2String_;
185 std::string getValue(
const std::string& key)
const;
std::string getDBUser() const
get the database user
std::string getSocket() const
get the socket for local, native connections
Class used for configuring a DBConnection.
~DBConfigurator()
Destructor.
std::string getRDBMS() const
get the rdbms
MonitorDataAreaType
type describing a particular set of directories used in writing, loading, and archiving monitor point...
MonitorAggregateType
aggregate data type of the monitor[point,data file, table]
std::string getLogWriteFileBaseName() const
std::string getODBCini() const
get the name of the odbc.ini file
std::string getTopDir() const
std::map< carma::dbms::MonitorAggregateType, std::string > getAverageAreas(const carma::dbms::MonitorAverageType &avgType, const carma::dbms::MonitorDataAreaType &area)
get the monitor point data directories corresponding to the specified average type and the specified ...
std::string getSyslogMMAPFileName() const
std::string getLogBufferSharedMemoryName() const
std::string getDataSource() const
get the ODBC data source
unsigned getPort() const
get the port for remote, native connections
DBConfigurator(const std::string &filename)
constructor
access of DBMS related resources for carma::dbms.
std::string getPasswordFile() const
get the password file for the dbuser this method makes no attempt to do file or existence checking ...
std::string getPipeFileNames() const
std::string getWorkDir() const
MonitorAverageType
average type of the monitor[point,data file,table]
std::string getLogLoadDirectory() const
std::map< std::string, std::string > getConfiguration() const
get configuration data
std::map< carma::dbms::MonitorDataIndex, std::string > getMonitorDataAreas() const
get monitor point data areas as a map of monitorAreaIndices to directory names
std::string getLogWriteDirectory() const
std::string getDBName() const
get the database name
std::string getDataDirectory(const MonitorDataAreaType &mpArea, const MonitorAverageType &avgType, const MonitorAggregateType &aggType) const
get the specified data directory