|
SimpleIni
|
#include <cstring>#include <string>#include <map>#include <list>#include <algorithm>#include <stdio.h>#include <iostream>#include <wchar.h>#include "ConvertUTF.h"Go to the source code of this file.
Classes | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER > |
| Simple INI file reader. More... | |
| struct | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Entry |
| key entry More... | |
| struct | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Entry::KeyOrder |
| Strict less ordering by name of key only. More... | |
| struct | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Entry::LoadOrder |
| Strict less ordering by order, and then name of key. More... | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::OutputWriter |
| interface definition for the OutputWriter object to pass to Save() in order to output the INI file data. More... | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::FileWriter |
| OutputWriter class to write the INI data to a file. More... | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::StringWriter |
| OutputWriter class to write the INI data to a string. More... | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::StreamWriter |
| OutputWriter class to write the INI data to an ostream. More... | |
| class | CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Converter |
| Characterset conversion utility class to convert strings to the same format as is used for the storage. More... | |
| struct | SI_GenericCase< SI_CHAR > |
| Generic case-sensitive less than comparison. More... | |
| struct | SI_GenericNoCase< SI_CHAR > |
| Generic ASCII case-insensitive less than comparison. More... | |
| class | SI_ConvertA< SI_CHAR > |
| Null conversion class for MBCS/UTF-8 to char (or equivalent). More... | |
| class | SI_ConvertW< SI_CHAR > |
| Converts UTF-8 to a wchar_t (or equivalent) using the Unicode reference library functions. More... | |
Defines | |
| #define | SI_ASSERT(x) |
| #define | SI_UTF8_SIGNATURE "\xEF\xBB\xBF" |
| #define | SI_NEWLINE_A "\n" |
| #define | SI_NEWLINE_W L"\n" |
| #define | SI_CONVERT_GENERIC |
| #define | SI_Case SI_GenericCase |
| #define | SI_NoCase SI_GenericNoCase |
| #define | CSimpleIni CSimpleIniA |
| #define | CSimpleIniCase CSimpleIniCaseA |
| #define | SI_NEWLINE SI_NEWLINE_A |
Typedefs | |
| typedef CSimpleIniTempl< char, SI_NoCase< char >, SI_ConvertA < char > > | CSimpleIniA |
| typedef CSimpleIniTempl< char, SI_Case< char >, SI_ConvertA < char > > | CSimpleIniCaseA |
| typedef CSimpleIniTempl < wchar_t, SI_NoCase< wchar_t > , SI_ConvertW< wchar_t > > | CSimpleIniW |
| typedef CSimpleIniTempl < wchar_t, SI_Case< wchar_t > , SI_ConvertW< wchar_t > > | CSimpleIniCaseW |
Enumerations | |
| enum | SI_Error { SI_OK = 0, SI_UPDATED = 1, SI_INSERTED = 2, SI_FAIL = -1, SI_NOMEM = -2, SI_FILE = -3 } |
| #define CSimpleIni CSimpleIniA |
Definition at line 3360 of file SimpleIni.h.
| #define CSimpleIniCase CSimpleIniCaseA |
Definition at line 3361 of file SimpleIni.h.
| #define SI_ASSERT | ( | x | ) |
Definition at line 232 of file SimpleIni.h.
Referenced by SI_ConvertW< SI_CHAR >::SizeFromStore(), and SI_ConvertA< SI_CHAR >::SizeFromStore().
| #define SI_Case SI_GenericCase |
Definition at line 2783 of file SimpleIni.h.
| #define SI_CONVERT_GENERIC |
Definition at line 2615 of file SimpleIni.h.
| #define SI_NEWLINE SI_NEWLINE_A |
Definition at line 3362 of file SimpleIni.h.
| #define SI_NEWLINE_A "\n" |
Definition at line 252 of file SimpleIni.h.
Referenced by CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Save().
| #define SI_NEWLINE_W L"\n" |
Definition at line 253 of file SimpleIni.h.
| #define SI_NoCase SI_GenericNoCase |
Definition at line 2784 of file SimpleIni.h.
| #define SI_UTF8_SIGNATURE "\xEF\xBB\xBF" |
Definition at line 246 of file SimpleIni.h.
Referenced by CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::LoadData(), and CSimpleIniTempl< SI_CHAR, SI_STRLESS, SI_CONVERTER >::Save().
| typedef CSimpleIniTempl<char, SI_NoCase<char>,SI_ConvertA<char> > CSimpleIniA |
Definition at line 3339 of file SimpleIni.h.
| typedef CSimpleIniTempl<char, SI_Case<char>,SI_ConvertA<char> > CSimpleIniCaseA |
Definition at line 3341 of file SimpleIni.h.
| typedef CSimpleIniTempl<wchar_t, SI_Case<wchar_t>,SI_ConvertW<wchar_t> > CSimpleIniCaseW |
Definition at line 3352 of file SimpleIni.h.
| typedef CSimpleIniTempl<wchar_t, SI_NoCase<wchar_t>,SI_ConvertW<wchar_t> > CSimpleIniW |
Definition at line 3350 of file SimpleIni.h.
| enum SI_Error |
| SI_OK |
No error. |
| SI_UPDATED |
An existing value was updated. |
| SI_INSERTED |
A new value was inserted. |
| SI_FAIL |
Generic failure. |
| SI_NOMEM |
Out of memory error. |
| SI_FILE |
File error (see errno for detail error) |
Definition at line 235 of file SimpleIni.h.
1.7.3