home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / MIFILES.HPP < prev    next >
C/C++ Source or Header  |  1997-02-14  |  3KB  |  59 lines

  1. //----------------------------------------------------------------------------
  2. // MIFiles.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: MIFiles.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef MIFilesHPP
  6. #define MIFilesHPP
  7. //----------------------------------------------------------------------------
  8. #include <Classes.hpp>
  9. #include <SysUtils.hpp>
  10. #include <System.hpp>
  11. namespace Mifiles
  12. {
  13. //-- type declarations -------------------------------------------------------
  14. class __declspec(delphiclass) TMemIniFile;
  15. class __declspec(pascalimplementation) TMemIniFile : public System::TObject
  16. {
  17.     typedef System::TObject inherited;
  18.     
  19. private:
  20.     System::AnsiString FFileName;
  21.     Classes::TStringList* FSections;
  22.     Classes::TStrings* __fastcall AddSection(const System::AnsiString Section);
  23.     
  24. public:
  25.     __fastcall TMemIniFile(const System::AnsiString FileName);
  26.     __fastcall virtual ~TMemIniFile(void);
  27.     void __fastcall Clear(void);
  28.     void __fastcall DeleteKey(const System::AnsiString Section, const System::AnsiString Ident);
  29.     void __fastcall EraseSection(const System::AnsiString Section);
  30.     void __fastcall GetStrings(Classes::TStrings* List);
  31.     bool __fastcall ReadBool(const System::AnsiString Section, const System::AnsiString Ident, bool Default
  32.         );
  33.     long __fastcall ReadInteger(const System::AnsiString Section, const System::AnsiString Ident, long 
  34.         Default);
  35.     void __fastcall ReadSection(const System::AnsiString Section, Classes::TStrings* Strings);
  36.     void __fastcall ReadSections(Classes::TStrings* Strings);
  37.     void __fastcall ReadSectionValues(const System::AnsiString Section, Classes::TStrings* Strings);
  38.     System::AnsiString __fastcall ReadString(const System::AnsiString Section, const System::AnsiString 
  39.         Ident, const System::AnsiString Default);
  40.     void __fastcall SetStrings(Classes::TStrings* List);
  41.     void __fastcall UpdateFile(void);
  42.     void __fastcall WriteBool(const System::AnsiString Section, const System::AnsiString Ident, bool Value
  43.         );
  44.     void __fastcall WriteInteger(const System::AnsiString Section, const System::AnsiString Ident, long 
  45.         Value);
  46.     void __fastcall WriteString(const System::AnsiString Section, const System::AnsiString Ident, const System::AnsiString 
  47.         Value);
  48.     __property System::AnsiString FileName = {read=FFileName, nodefault};
  49. };
  50.  
  51. //-- var, const, procedure ---------------------------------------------------
  52.  
  53. }    /* namespace Mifiles */
  54. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  55. using namespace Mifiles;
  56. #endif
  57. //-- end unit ----------------------------------------------------------------
  58. #endif    // MIFiles
  59.