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

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