PARTONS/ElementaryUtils  
Basic utility softwares (Logger, threads, etc)
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ElemUtils::PropertiesManager Class Reference

<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 &section, const std::string &key)
 
std::string getString (const std::string &key)
 
bool checkIfAvailable (const std::string &section, const std::string &key) const
 
bool checkIfAvailable (const std::string &key) const
 
std::string getPropertiesFilePath () const
 

Static Public Member Functions

static PropertiesManagergetInstance ()
 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 PropertiesManagerpInstance = 0
 Private pointer of this class for a unique instance. More...
 

Detailed Description

<singleton> Handles properties from configuration file.

Constructor & Destructor Documentation

◆ ~PropertiesManager()

ElemUtils::PropertiesManager::~PropertiesManager ( )
virtual

Default destructor.

◆ PropertiesManager()

ElemUtils::PropertiesManager::PropertiesManager ( )
private

Private default constructor for a unique instance of this class.

Member Function Documentation

◆ checkIfAvailable() [1/2]

bool ElemUtils::PropertiesManager::checkIfAvailable ( const std::string &  key) const

◆ checkIfAvailable() [2/2]

bool ElemUtils::PropertiesManager::checkIfAvailable ( const std::string &  section,
const std::string &  key 
) const

◆ getInstance()

PropertiesManager * ElemUtils::PropertiesManager::getInstance ( )
static

A static function that provides a unique pointer of this class.

Returns
A unique pointer of this class

◆ getPropertiesFilePath()

std::string ElemUtils::PropertiesManager::getPropertiesFilePath ( ) const

◆ getString() [1/2]

std::string ElemUtils::PropertiesManager::getString ( const std::string &  key)

◆ getString() [2/2]

std::string ElemUtils::PropertiesManager::getString ( const std::string &  section,
const std::string &  key 
)

◆ init()

void ElemUtils::PropertiesManager::init ( const std::string &  iniFilePath)

Member Data Documentation

◆ m_iniFileParser

IniFileParser ElemUtils::PropertiesManager::m_iniFileParser
private

◆ m_mutex

sf::Mutex ElemUtils::PropertiesManager::m_mutex
staticprivate

◆ pInstance

PropertiesManager * ElemUtils::PropertiesManager::pInstance = 0
staticprivate

Private pointer of this class for a unique instance.


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