File ini.h¶
-
namespace mINI¶
-
-
class INIFile
- #include <ini.h>
Public Functions
-
inline INIFile(std::filesystem::path filename)¶
-
~INIFile() = default¶
-
inline bool read(INIStructure &data) const¶
-
inline bool generate(INIStructure const &data, bool pretty = false) const¶
-
inline bool write(INIStructure &data, bool pretty = false) const¶
Private Members
-
std::filesystem::path filename¶
-
inline INIFile(std::filesystem::path filename)¶
-
class INIGenerator
- #include <ini.h>
Public Functions
-
inline INIGenerator(std::filesystem::path const &filename)¶
-
~INIGenerator() = default¶
-
inline bool operator<<(INIStructure const &data)¶
Public Members
-
bool prettyPrint = false¶
Private Members
-
std::ofstream fileWriteStream¶
-
inline INIGenerator(std::filesystem::path const &filename)¶
-
template<typename T>
class INIMap - #include <ini.h>
Public Types
-
using const_iterator = typename T_DataContainer::const_iterator¶
Public Functions
-
INIMap() = default¶
-
inline bool has(std::string key) const¶
-
inline void set(T_MultiArgs const &multiArgs)¶
-
inline bool remove(std::string key)¶
-
inline void clear()¶
-
inline std::size_t size() const¶
-
inline const_iterator begin() const¶
-
inline const_iterator end() const¶
Private Types
-
using T_DataIndexMap = std::unordered_map<std::string, std::size_t>¶
-
using T_DataContainer = std::vector<T_DataItem>¶
Private Functions
-
inline std::size_t setEmpty(std::string &key)¶
-
using const_iterator = typename T_DataContainer::const_iterator¶
-
class INIReader
- #include <ini.h>
Public Types
-
using T_LineData = std::vector<std::string>¶
-
using T_LineDataPtr = std::shared_ptr<T_LineData>¶
Public Functions
-
inline INIReader(std::filesystem::path const &filename, bool keepLineData = false)¶
-
~INIReader() = default¶
-
inline bool operator>>(INIStructure &data)¶
-
inline T_LineDataPtr getLines()¶
Public Members
-
bool isBOM = false¶
Private Functions
-
inline T_LineData readFile()¶
-
using T_LineData = std::vector<std::string>¶
-
class INIWriter
- #include <ini.h>
Public Functions
-
inline INIWriter(std::filesystem::path filename)¶
-
~INIWriter() = default¶
-
inline bool operator<<(INIStructure &data)¶
Public Members
-
bool prettyPrint = false¶
Private Types
-
using T_LineData = std::vector<std::string>¶
-
using T_LineDataPtr = std::shared_ptr<T_LineData>¶
Private Functions
-
inline T_LineData getLazyOutput(T_LineDataPtr const &lineData, INIStructure &data, INIStructure &original) const¶
Private Members
-
std::filesystem::path filename¶
-
inline INIWriter(std::filesystem::path filename)¶
-
namespace INIParser¶
Typedefs
-
using T_ParseValues = std::pair<std::string, std::string>¶
Enums
Functions
-
inline PDataType parseLine(std::string line, T_ParseValues &parseData)¶
-
using T_ParseValues = std::pair<std::string, std::string>¶
-
class INIFile