home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / INIFILES.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  2.5 KB  |  65 lines

  1. //----------------------------------------------------------------------------
  2. // IniFiles.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: IniFiles.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef IniFilesHPP
  6. #define IniFilesHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef ClassesHPP
  9. #include <Classes.hpp>
  10. #endif
  11.  
  12. #ifndef WindowsHPP
  13. #include <Windows.hpp>
  14. #endif
  15.  
  16. #ifndef SystemHPP
  17. #include <System.hpp>
  18. #endif
  19.  
  20. namespace Inifiles
  21. {
  22. //-- type declarations -------------------------------------------------------
  23. class __declspec(delphiclass) TIniFile;
  24. class __declspec(pascalimplementation) TIniFile : public System::TObject
  25. {
  26.     typedef TIniFile ThisClass;
  27.     typedef System::TObject inherited;
  28.     
  29. private:
  30.     System::AnsiString FFileName;
  31.     
  32. public:
  33.     __fastcall TIniFile(const System::AnsiString FileName);
  34.     System::AnsiString __fastcall ReadString(const System::AnsiString Section, const System::AnsiString 
  35.         Ident, const System::AnsiString Default);
  36.     void __fastcall WriteString(const System::AnsiString Section, const System::AnsiString Ident, const System::AnsiString 
  37.         Value);
  38.     System::Longint __fastcall ReadInteger(const System::AnsiString Section, const System::AnsiString Ident
  39.         , System::Longint Default);
  40.     void __fastcall WriteInteger(const System::AnsiString Section, const System::AnsiString Ident, System::Longint 
  41.         Value);
  42.     System::Boolean __fastcall ReadBool(const System::AnsiString Section, const System::AnsiString Ident
  43.         , System::Boolean Default);
  44.     void __fastcall WriteBool(const System::AnsiString Section, const System::AnsiString Ident, System::Boolean 
  45.         Value);
  46.     void __fastcall ReadSection(const System::AnsiString Section, Classes::TStrings *Strings);
  47.     void __fastcall ReadSections(Classes::TStrings *Strings);
  48.     void __fastcall ReadSectionValues(const System::AnsiString Section, Classes::TStrings *Strings);
  49.     void __fastcall EraseSection(const System::AnsiString Section);
  50.     void __fastcall DeleteKey(const System::AnsiString Section, const System::AnsiString Ident);
  51.     __property System::AnsiString FileName = {read=FFileName, nodefault};
  52. public:
  53.     /* !! TObject.Destroy */ __fastcall virtual ~TIniFile(void) { }
  54.     
  55. };
  56.  
  57. //-- var, const, procedure ---------------------------------------------------
  58.  
  59. }    /* namespace Inifiles */
  60. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  61. using namespace Inifiles;
  62. #endif
  63. //-- end unit ----------------------------------------------------------------
  64. #endif    // IniFiles
  65.