00001
00002
00003
00004
00005 #ifndef INI_H_INCLUDED
00006 #define INI_H_INCLUDED
00007
00008 #include "typedefs.h"
00009 #include "inisection.h"
00010
00012
00013
00014
00015 class INIFile
00016 {
00017 private:
00018
00020 miniini_private::ui Length;
00022 INISection * * Sections;
00023
00024 public:
00025
00027 INIFile();
00028
00030
00035 bool OpenFile(const char * const fname);
00036
00038
00041 ~INIFile();
00042
00044
00049 INISection * GetSection(const char * const name) const;
00050
00052
00057 INISection * operator [] (const char * const name) const;
00058
00060 unsigned GetLength() const;
00061
00062 private:
00063
00064 INIFile(const INIFile &);
00065
00066 void operator = (const INIFile &);
00067
00068 };
00069
00070 #endif