replicode
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IniFile Class Reference

#include <inifile.h>

Collaboration diagram for IniFile:
Collaboration graph

Public Member Functions

bool readFile (std::string filename)
 
std::string getString (const std::string group, const std::string name, std::string defaultVal)
 
uint64_t getInt (const std::string group, const std::string name, uint64_t defaultVal)
 
double getDouble (const std::string group, const std::string name, double defaultVal)
 
int getBool (const std::string group, const std::string name, bool defaultVal)
 

Private Member Functions

bool hasInt (const std::string group, const std::string name)
 
bool hasDouble (const std::string group, const std::string name)
 
bool hasBool (const std::string group, const std::string name)
 
bool hasString (const std::string group, const std::string name)
 

Private Attributes

std::unordered_map< std::string, std::unordered_map< std::string, std::string > > m_values
 

Member Function Documentation

int IniFile::getBool ( const std::string  group,
const std::string  name,
bool  defaultVal 
)

Here is the call graph for this function:

double IniFile::getDouble ( const std::string  group,
const std::string  name,
double  defaultVal 
)

Here is the call graph for this function:

uint64_t IniFile::getInt ( const std::string  group,
const std::string  name,
uint64_t  defaultVal 
)

Here is the call graph for this function:

std::string IniFile::getString ( const std::string  group,
const std::string  name,
std::string  defaultVal 
)

Here is the call graph for this function:

bool IniFile::hasBool ( const std::string  group,
const std::string  name 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool IniFile::hasDouble ( const std::string  group,
const std::string  name 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool IniFile::hasInt ( const std::string  group,
const std::string  name 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool IniFile::hasString ( const std::string  group,
const std::string  name 
)
private

Here is the caller graph for this function:

bool IniFile::readFile ( std::string  filename)

Here is the call graph for this function:

Member Data Documentation

std::unordered_map<std::string, std::unordered_map<std::string, std::string> > IniFile::m_values
private

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