home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
VIRTFILE.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
5KB
|
107 lines
//----------------------------------------------------------------------------
// VirtFile.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: VirtFile.pas
//----------------------------------------------------------------------------
#ifndef VirtFileHPP
#define VirtFileHPP
//----------------------------------------------------------------------------
#include <FileIntf.hpp>
#include <IStreams.hpp>
#include <VirtIntf.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Virtfile
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TVirtualFileSystem;
class __declspec(pascalimplementation) TVirtualFileSystem : public System::TObject
{
typedef System::TObject inherited;
public:
virtual Istreams::TVirtualStream* __fastcall GetFileStream(const System::AnsiString FileName, int Mode
) = 0;
virtual long __fastcall FileAge(const System::AnsiString FileName) = 0;
virtual bool __fastcall RenameFile(const System::AnsiString OldName, const System::AnsiString NewName
) = 0;
virtual bool __fastcall IsReadonly(const System::AnsiString FileName) = 0;
virtual bool __fastcall IsFileBased(void) = 0;
virtual bool __fastcall DeleteFile(const System::AnsiString FileName) = 0;
virtual bool __fastcall FileExists(const System::AnsiString FileName) = 0;
virtual System::AnsiString __fastcall GetTempFileName(const System::AnsiString FileName) = 0;
virtual System::AnsiString __fastcall GetBackupFileName(const System::AnsiString FileName) = 0;
virtual System::AnsiString __fastcall GetIDString(void) = 0;
public:
/* TObject.Create */ __fastcall TVirtualFileSystem(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~TVirtualFileSystem(void) { }
};
class __declspec(delphiclass) TDefaultFileSystem;
class __declspec(pascalimplementation) TDefaultFileSystem : public TVirtualFileSystem
{
typedef TVirtualFileSystem inherited;
public:
virtual Istreams::TVirtualStream* __fastcall GetFileStream(const System::AnsiString FileName, int Mode
);
virtual long __fastcall FileAge(const System::AnsiString FileName);
virtual bool __fastcall RenameFile(const System::AnsiString OldName, const System::AnsiString NewName
);
virtual bool __fastcall IsReadonly(const System::AnsiString FileName);
virtual bool __fastcall IsFileBased(void);
virtual bool __fastcall DeleteFile(const System::AnsiString FileName);
virtual bool __fastcall FileExists(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetTempFileName(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetBackupFileName(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetIDString(void);
public:
/* TObject.Create */ __fastcall TDefaultFileSystem(void) : Virtfile::TVirtualFileSystem() { }
/* TObject.Destroy */ __fastcall virtual ~TDefaultFileSystem(void) { }
};
class __declspec(delphiclass) TExternalFileSystem;
class __declspec(pascalimplementation) TExternalFileSystem : public TVirtualFileSystem
{
typedef TVirtualFileSystem inherited;
private:
Fileintf::TIVirtualFileSystem* FIVirtualFileSystem;
public:
__fastcall TExternalFileSystem(Fileintf::TIVirtualFileSystem* AIVirtualFileSystem);
__fastcall virtual ~TExternalFileSystem(void);
virtual Istreams::TVirtualStream* __fastcall GetFileStream(const System::AnsiString FileName, int Mode
);
virtual long __fastcall FileAge(const System::AnsiString FileName);
virtual bool __fastcall RenameFile(const System::AnsiString OldName, const System::AnsiString NewName
);
virtual bool __fastcall IsReadonly(const System::AnsiString FileName);
virtual bool __fastcall IsFileBased(void);
virtual bool __fastcall DeleteFile(const System::AnsiString FileName);
virtual bool __fastcall FileExists(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetTempFileName(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetBackupFileName(const System::AnsiString FileName);
virtual System::AnsiString __fastcall GetIDString(void);
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Virtfile */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Virtfile;
#endif
//-- end unit ----------------------------------------------------------------
#endif // VirtFile