Unit AdFileClasses

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Provides some classes to handle virtual file systems, especially with packages. For packages, see also TAdFileStreamEx in AdFileStreamEx.pas.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EAdFileLockedException  
Class EAdFileStreamReadOnlyException  
Class EAdUnknownPackageFormatException  
Class EAdUnknownCompressionException  
Class TAdFileMemStream A file stream which is returned by TAdFile.GetStream.
Class TAdFile A virtual file in a virtual file system.
Class TAdDirectory A virtual directory used in virtual file systems.
Class TAdPackageMap A special map that allows the file controller to free all the packages when it is destroyed by providing a list of all its elements.
Class TAdWrappedFileName A key class for a map.
Class TAdCompression An abstract class that provides compression and decompression methods.
Class TAdPackage A package is an archive file like a tar file.
Class TAdFileControl The file control handles connections between virtual file systems and the physical file system, for example by providing methods for loading and unloading packages It also provides general methods for processing files such as compressing and decompressing and information about the operating system's file system, such as whether file names are case-sensitive.

Functions and Procedures

function FileSizeToStr(const FileSize: Int64): String;
function IsPathDelimiter(const AChar: Char): Boolean;

Types

TAdCompressionClass = class of TAdCompression;
TAdPackageClass = class of TAdPackage;

Constants

PATHDELIMS = ['/', '\'];

Variables

FileControl: TAdFileControl;

Description

Functions and Procedures

function FileSizeToStr(const FileSize: Int64): String;

Converts a file size in byte to a string (GB is the highest unit)

function IsPathDelimiter(const AChar: Char): Boolean;

Determines whether the given character is a path delimiter on any known platform.

Types

TAdCompressionClass = class of TAdCompression;
 
TAdPackageClass = class of TAdPackage;
 

Constants

PATHDELIMS = ['/', '\'];
 

Variables

FileControl: TAdFileControl;
 

SourceForge.net Logo


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