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

◆ ConfigurationParameters() [1/2]

sgpp::base::ConfigurationParameters::ConfigurationParameters ( )

◆ ConfigurationParameters() [2/2]

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

References readFromFile(), and readFromMap().

◆ ~ConfigurationParameters()

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

Member Function Documentation

◆ clear()

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

References parameters.

◆ clone()

virtual std::shared_ptr<ConfigurationParameters> sgpp::base::ConfigurationParameters::clone ( )
pure virtual

◆ get()

std::string & sgpp::base::ConfigurationParameters::get ( const std::string &  key)

References parameters.

◆ getAsBoolean()

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

References parameters.

◆ getAsList()

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

◆ getAsUnsigned()

uint64_t sgpp::base::ConfigurationParameters::getAsUnsigned ( const std::string &  key)

References parameters, and create_scripts::s.

◆ getKeys()

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

References parameters.

◆ readFromFile()

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

◆ readFromMap()

void sgpp::base::ConfigurationParameters::readFromMap ( const std::map< std::string, std::string > &  parametersMap)

◆ set()

void sgpp::base::ConfigurationParameters::set ( const std::string  key,
std::string  value 
)

References parameters.

◆ writeToFile()

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

Member Data Documentation

◆ parameters

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

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