TDiskCatalog

From Ultibo.org
Revision as of 04:32, 17 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Return to Unit Filesystem


Description


To be documented

Class definitions



TDiskCatalog = class(TListObject)

Note: A disk catalog such as a bootable section.
 
constructor Create(ALocalLock:TMutexHandle);  
destructor Destroy; override;  
protected
FLock:TSynchronizerHandle;  
FLocalLock:TMutexHandle;  
 
FName:String;  
FHash:LongWord;  
FPath:String;  
FCatalogNo:LongWord;  
 
FMediaType:TMediaType;  
FFloppyType:TFloppyType;  
FAttributes:LongWord; Initial/Default, Bootable, No Emulation, 1.2M, 1.44M, 2.88M, Hard Disk
FSectorSize:Word;  
FSectorCount:Int64;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function GetName:String; virtual;  
procedure SetName(const AName:String); virtual;  
function GetPath:String; virtual;  
procedure SetPath(const APath:String); virtual;  
function GetMediaType:TMediaType; virtual;  
procedure SetMediaType(AMediaType:TMediaType); virtual;  
function GetFloppyType:TFloppyType; virtual;  
procedure SetFloppyType(AFloppyType:TFloppyType); virtual;  
function GetAttributes:LongWord; virtual;  
procedure SetAttributes(AAttributes:LongWord); virtual;  
function GetSectorSize:Word; virtual;  
procedure SetSectorSize(ASectorSize:Word); virtual;  
function GetSectorCount:Int64; virtual;  
procedure SetSectorCount(const ASectorCount:Int64); virtual;  
public
property Name:String read GetName write SetName;  
property Hash:LongWord read FHash;  
property Path:String read GetPath write SetPath;  
property CatalogNo:LongWord read FCatalogNo write FCatalogNo;  
 
property MediaType:TMediaType read GetMediaType write SetMediaType;  
property FloppyType:TFloppyType read GetFloppyType write SetFloppyType;  
property Attributes:LongWord read GetAttributes write SetAttributes;  
property SectorSize:Word read GetSectorSize write SetSectorSize;  
property SectorCount:Int64 read GetSectorCount write SetSectorCount;  
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  


Function declarations



constructor TDiskCatalog.Create(ALocalLock:TMutexHandle);
Description: To be documented
Note None documented


destructor TDiskCatalog.Destroy;
Description: To be documented
Note None documented


function TDiskCatalog.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TDiskCatalog.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TDiskCatalog.GetName:String;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetName(const AName:String);
Description: To be documented
Note None documented


function TDiskCatalog.GetPath:String;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetPath(const APath:String);
Description: To be documented
Note None documented


function TDiskCatalog.GetMediaType:TMediaType;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetMediaType(AMediaType:TMediaType);
Description: To be documented
Note None documented


function TDiskCatalog.GetFloppyType:TFloppyType;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetFloppyType(AFloppyType:TFloppyType);
Description: To be documented
Note None documented


function TDiskCatalog.GetAttributes:LongWord;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetAttributes(AAttributes:LongWord);
Description: To be documented
Note None documented


function TDiskCatalog.GetSectorSize:Word;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetSectorSize(ASectorSize:Word);
Description: To be documented
Note None documented


function TDiskCatalog.GetSectorCount:Int64;
Description: To be documented
Note None documented


procedure TDiskCatalog.SetSectorCount(const ASectorCount:Int64);
Description: To be documented
Note None documented


function TDiskCatalog.ReaderLock:Boolean;
Description: To be documented
Note None documented


function TDiskCatalog.ReaderUnlock:Boolean;
Description: To be documented
Note None documented


function TDiskCatalog.WriterLock:Boolean;
Description: To be documented
Note None documented


function TDiskCatalog.WriterUnlock:Boolean;
Description: To be documented
Note None documented


Return to Unit Reference