From 0f2efff1fd88801ade66974b1fb563ea237e3b1b Mon Sep 17 00:00:00 2001 From: Daveo Date: Wed, 23 May 2001 16:13:24 +0000 Subject: [PATCH] --- Utils/Libs/DaveLib/IniClass.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Utils/Libs/DaveLib/IniClass.h b/Utils/Libs/DaveLib/IniClass.h index c37b3b423..a18f61b39 100644 --- a/Utils/Libs/DaveLib/IniClass.h +++ b/Utils/Libs/DaveLib/IniClass.h @@ -34,6 +34,17 @@ public: int GetGroupCount() {return(IniGroup.size());} char *GetGroupName(int i) {return(IniGroup[i].Name);} + int GetKeyCount(const char *Grp) + { + int Group=FindGroup(Grp); + return(IniGroup[Group].Entry.size()); + } + char *GetKeyName(const char *Grp,int Idx) + { + int Group=FindGroup(Grp); + return(IniGroup[Group].Entry[Idx].Key); + } + /*----------------------------------------------------------------------------*/ // returns 1 of fail, 0 on success!! (Who thought that up!) int MyStrCmp(const char *Str0,const char *Str1)