Class TAdFile

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdFile = class(TObject)

Description

A virtual file in a virtual file system. Its data can be read by using the stream returned by GetStream. Note that every trial to get a non-read-only stream will throw an exception if there are any other streams reading or writing. Trying to get a read-only stream when a stream is writing will also result in an exception.

Hierarchy

Overview

Methods

Public constructor Create(const Directory: TAdDirectory; const FileName, Path: String; const AStream: TStream; const Size: Int64);
Public destructor Destroy; override;
Public function GetStream(const ReadOnly: Boolean=True): TStream;

Properties

Public property FileName: String read FFileName;
Public property Path: String read FPath;
Public property PackagePath: String read FPackagePath;
Public property Size: Int64 read FSize;
Public property Directory: TAdDirectory read FDirectory;
Public property Locked: Boolean read FWriting;
Public property LockedForWriting: Boolean read IsLockedForWriting;

Description

Methods

Public constructor Create(const Directory: TAdDirectory; const FileName, Path: String; const AStream: TStream; const Size: Int64);
 
Public destructor Destroy; override;
 
Public function GetStream(const ReadOnly: Boolean=True): TStream;
 

Properties

Public property FileName: String read FFileName;
 
Public property Path: String read FPath;
 
Public property PackagePath: String read FPackagePath;
 
Public property Size: Int64 read FSize;
 
Public property Directory: TAdDirectory read FDirectory;
 
Public property Locked: Boolean read FWriting;
 
Public property LockedForWriting: Boolean read IsLockedForWriting;
 

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59