Class TAdPackage

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdPackage = class(TObject)

Description

A package is an archive file like a tar file. When loaded, it provides a virtual file system through its property Root. Files and directories in the archive can be accessed by going though the directory tree of the file system. A package class has to be able to load and save a specific package (archive) file format and furthermore determine whether it can load an archive given in a stream (function CanOpen).

Hierarchy

Overview

Methods

Public class function CanOpen(const AStream: TStream): Boolean; virtual; abstract;
Public class function GetPackageFormatName: String; virtual; abstract;
Public class function ID: TAdVeryShortString; virtual; abstract;
Public constructor Create(const AOwnsFiles: Boolean = True); reintroduce;
Public destructor Destroy; override;
Public procedure LoadFromStream(const AStream: TStream; const AFileName: String=''); virtual;
Public procedure LoadFromFile(const FileName: String); virtual;
Public procedure SaveToStream(const AStream: TStream); virtual; abstract;
Public procedure SaveToFile(const FileName: String); virtual;

Properties

Public property OwnsFiles: Boolean read FOwnsFiles write FOwnsFiles;
Public property AutoUnload: Boolean read FAutoUnload write FAutoUnload;
Public property Root: TAdDirectory read FRoot write SetRoot;
Public property Empty: Boolean read GetEmpty write SetEmpty;
Public property FileName: String read FPath;

Description

Methods

Public class function CanOpen(const AStream: TStream): Boolean; virtual; abstract;
 
Public class function GetPackageFormatName: String; virtual; abstract;
 
Public class function ID: TAdVeryShortString; virtual; abstract;
 
Public constructor Create(const AOwnsFiles: Boolean = True); reintroduce;
 
Public destructor Destroy; override;
 
Public procedure LoadFromStream(const AStream: TStream; const AFileName: String=''); virtual;
 
Public procedure LoadFromFile(const FileName: String); virtual;
 
Public procedure SaveToStream(const AStream: TStream); virtual; abstract;
 
Public procedure SaveToFile(const FileName: String); virtual;
 

Properties

Public property OwnsFiles: Boolean read FOwnsFiles write FOwnsFiles;
 
Public property AutoUnload: Boolean read FAutoUnload write FAutoUnload;
 
Public property Root: TAdDirectory read FRoot write SetRoot;
 
Public property Empty: Boolean read GetEmpty write SetEmpty;
 
Public property FileName: String read FPath;
 

SourceForge.net Logo


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