PARTONS/ElementaryUtils
|
Basic utility softwares (Logger, threads, etc)
|
<singleton> Handles properties from configuration file. More...
Public Member Functions | |
virtual | ~PropertiesManager () |
Default destructor. More... | |
void | init (const std::string &iniFilePath) |
std::string | getString (const std::string §ion, const std::string &key) |
std::string | getString (const std::string &key) |
bool | checkIfAvailable (const std::string §ion, const std::string &key) const |
bool | checkIfAvailable (const std::string &key) const |
std::string | getPropertiesFilePath () const |
Static Public Member Functions | |
static PropertiesManager * | getInstance () |
A static function that provides a unique pointer of this class. More... | |
Private Member Functions | |
PropertiesManager () | |
Private default constructor for a unique instance of this class. More... | |
Private Attributes | |
IniFileParser | m_iniFileParser |
Static Private Attributes | |
static sf::Mutex | m_mutex |
static PropertiesManager * | pInstance = 0 |
Private pointer of this class for a unique instance. More... | |
<singleton> Handles properties from configuration file.
|
virtual |
Default destructor.
|
private |
Private default constructor for a unique instance of this class.
bool ElemUtils::PropertiesManager::checkIfAvailable | ( | const std::string & | key | ) | const |
bool ElemUtils::PropertiesManager::checkIfAvailable | ( | const std::string & | section, |
const std::string & | key | ||
) | const |
|
static |
A static function that provides a unique pointer of this class.
std::string ElemUtils::PropertiesManager::getPropertiesFilePath | ( | ) | const |
std::string ElemUtils::PropertiesManager::getString | ( | const std::string & | key | ) |
std::string ElemUtils::PropertiesManager::getString | ( | const std::string & | section, |
const std::string & | key | ||
) |
void ElemUtils::PropertiesManager::init | ( | const std::string & | iniFilePath | ) |
|
private |
|
staticprivate |
|
staticprivate |
Private pointer of this class for a unique instance.