Andorra Suite Documentation

Unit AcPersistent

Uses

Unit dependencies

View fullscreen

Description

AcPersistent.pas allows you to register classes and to share them between units, dynamic linked libraries and applications.

Structures

class

record

Functions

function AcDLLExportClasses
(ACallback: TAcEnumClassProc; ASender: Pointer; AVer: TAcRegSrvVerStr): integer;
procedure AcDLLRegisterProc
(ASender: Pointer; AEntry: PAcRegisteredClassEntry);
procedure AcDLLInit
();
procedure AcDLLFinalize
();
procedure AcDLLMemMgt
(AManager: PAcMemorymanagerBuf; var ASize: Byte);
function AcIsClass
(AClass: ShortString; AIdentStr: ShortString): boolean;

Constants

acceOk
= 0;
acceErr_Ver
= 1;

Variables

AcRegSrv
: TAcRegistrationServer = nil;
AcRegSrv is the global variable which should be used instead of instanciating an own TAcRegistrationServer object.
AcProgVer
: TAcRegSrvVerStr = 'ACREGSRV DEL 1.0';
AcProgVer is a variable which represents the current TAcRegistrationServer interface version. With each change in the TAcRegistrationServer insterface, which would lead to incompatibilities when loading external modules, the version number gets incremented.

Types

TAcPersistentClass
= class of TAcPersistent;
A replacement for TPersistentClass.
PAcRegisteredClassEntry
= ^TAcRegisteredClassEntry;
TAcEnumClassProc
= procedure(ASender: Pointer; AEntry: PAcRegisteredClassEntry);
Function used to enumerate registered classes. AEntry contains all information about the registered class entry.
TAcMemoryManager
= TMemoryManagerEx;
TAcMemoryManagerBuf
= array[0..128] of Byte;
PAcMemoryManagerBuf
= ^TAcMemoryManagerBuf;
TAcRegSrvVerStr
= string[20];
TAcRegSrvNotifyEvent
= procedure;
TAcDLLExportClassesProc
= function(ACallback: TAcEnumClassProc; ASender: Pointer; AVer: TAcRegSrvVerStr): integer;
TAcDLLInitProc
= procedure;
TAcDLLFinalizeProc
= procedure;
TAcDLLMemoryManagerProc
= procedure(AManager: PAcMemorymanagerBuf; var ASize: Byte);

This page was generated by a documentation system written by Andreas Stoeckel. This system makes use of a modified PasDoc version (download can be found here) and Graphviz.

Get Andorra Commons at SourceForge.net. Fast, secure and Free Open Source software downloads