molecular
Public Types | Public Member Functions | List of all members
molecular::util::IniFile Class Reference

ini file parser More...

#include <IniFile.h>

Public Types

typedef std::unordered_map< std::string, std::string > ValueMap
 
typedef std::unordered_map< std::string, ValueMapSectionMap
 

Public Member Functions

 IniFile ()=default
 
 IniFile (const void *data, size_t size)
 
template<class Storage >
 IniFile (Storage &storage)
 
void Load (const void *data, size_t size)
 
template<class Storage >
void Load (Storage &storage)
 
const ValueMapGetSection (const std::string &section) const
 
const SectionMapGetAllSections () const
 
const ValueMapat (const std::string &section) const
 

Detailed Description

ini file parser

Member Typedef Documentation

typedef std::unordered_map<std::string, ValueMap> molecular::util::IniFile::SectionMap
typedef std::unordered_map<std::string, std::string> molecular::util::IniFile::ValueMap

Constructor & Destructor Documentation

molecular::util::IniFile::IniFile ( )
default
molecular::util::IniFile::IniFile ( const void *  data,
size_t  size 
)
template<class Storage >
molecular::util::IniFile::IniFile ( Storage &  storage)

Member Function Documentation

const ValueMap& molecular::util::IniFile::at ( const std::string &  section) const
inline
const SectionMap& molecular::util::IniFile::GetAllSections ( ) const
inline
const ValueMap* molecular::util::IniFile::GetSection ( const std::string &  section) const
inline
void molecular::util::IniFile::Load ( const void *  data,
size_t  size 
)
template<class Storage >
void molecular::util::IniFile::Load ( Storage &  storage)

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