diff options
author | FusixGit <nikita0204@mail.ru> | 2014-12-04 17:48:31 +0300 |
---|---|---|
committer | FusixGit <nikita0204@mail.ru> | 2014-12-04 17:48:31 +0300 |
commit | 4d89fc245a89074c26f27ae2bf05bb012923c4b7 (patch) | |
tree | f8b1ae30e0fe3d1233d4af1575df5be9c2f59068 /src-x86-x64-Fusix | |
parent | bc84ee3ac43a379fdcfd82c24137906e3c7c3331 (diff) |
Update IniFile.h
Diffstat (limited to 'src-x86-x64-Fusix')
-rw-r--r-- | src-x86-x64-Fusix/IniFile.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src-x86-x64-Fusix/IniFile.h b/src-x86-x64-Fusix/IniFile.h index 2486683..c044a55 100644 --- a/src-x86-x64-Fusix/IniFile.h +++ b/src-x86-x64-Fusix/IniFile.h @@ -17,14 +17,7 @@ #include "stdafx.h" #include <Windows.h> -typedef enum _STRING_TRIM_TYPE -{ - TRIM_LEFT, - TRIM_RIGHT, - TRIM_BOTH, -} STRING_TRIM_TYPE; - -// Out values struńts +// Out values struŃts typedef struct _INI_VAR_STRING { char Name[128]; @@ -99,11 +92,15 @@ private: DWORD *FileStringsMap; // String-map INI_DATA IniData; // Parsed data - bool IsVariable(char *Str, DWORD StrSize); // Is variable (for Parse) - bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse) - int StrTrim(char* Str, STRING_TRIM_TYPE Type); - DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get stroing from string-map + // Common service functions + int StrTrim(char* Str); + + // Class service functions bool CreateStringsMap(); // Create file string-map bool Parse(); // Parse file to class structures + DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get stroing from string-map + bool IsVariable(char *Str, DWORD StrSize); + bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse) + bool GetVariableInSectionPrivate(char *SectionName, char *VariableName, INI_SECTION_VARIABLE *RetVariable); }; |