SG++-Doxygen-Documentation
sgpp::base::ConfigurationParameters Class Referenceabstract

#include <ConfigurationParameters.hpp>

Inheritance diagram for sgpp::base::ConfigurationParameters:
sgpp::base::OCLConfigurationParameters

Public Member Functions

void clear ()
 
virtual std::shared_ptr< ConfigurationParametersclone ()=0
 
 ConfigurationParameters ()
 
 ConfigurationParameters (std::string fileName, std::map< std::string, std::string > defaultParameters=std::map< std::string, std::string >())
 
std::string & get (const std::string &key)
 
bool getAsBoolean (const std::string &key)
 
std::vector< std::string > getAsList (const std::string &key)
 
uint64_t getAsUnsigned (const std::string &key)
 
std::vector< std::string > getKeys ()
 
void readFromFile (std::string fileName)
 
void readFromMap (const std::map< std::string, std::string > &parametersMap)
 
void set (const std::string key, std::string value)
 
void writeToFile (std::string fileName)
 
virtual ~ConfigurationParameters ()
 

Protected Attributes

std::map< std::string, std::string > parameters
 

Constructor & Destructor Documentation

sgpp::base::ConfigurationParameters::ConfigurationParameters ( )
sgpp::base::ConfigurationParameters::ConfigurationParameters ( std::string  fileName,
std::map< std::string, std::string >  defaultParameters = std::map<std::string, std::string>() 
)

References readFromFile(), and readFromMap().

sgpp::base::ConfigurationParameters::~ConfigurationParameters ( )
virtual

Member Function Documentation

void sgpp::base::ConfigurationParameters::clear ( )

References parameters.

virtual std::shared_ptr<ConfigurationParameters> sgpp::base::ConfigurationParameters::clone ( )
pure virtual
std::string & sgpp::base::ConfigurationParameters::get ( const std::string &  key)

References parameters.

bool sgpp::base::ConfigurationParameters::getAsBoolean ( const std::string &  key)

References parameters.

std::vector< std::string > sgpp::base::ConfigurationParameters::getAsList ( const std::string &  key)
uint64_t sgpp::base::ConfigurationParameters::getAsUnsigned ( const std::string &  key)

References parameters, and create_scripts::s.

std::vector< std::string > sgpp::base::ConfigurationParameters::getKeys ( )

References parameters.

void sgpp::base::ConfigurationParameters::readFromFile ( std::string  fileName)
void sgpp::base::ConfigurationParameters::readFromMap ( const std::map< std::string, std::string > &  parametersMap)
void sgpp::base::ConfigurationParameters::set ( const std::string  key,
std::string  value 
)

References parameters.

void sgpp::base::ConfigurationParameters::writeToFile ( std::string  fileName)

Member Data Documentation

std::map<std::string, std::string> sgpp::base::ConfigurationParameters::parameters
protected

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