Class TBrookLibraryLoader

Unit

Declaration

type TBrookLibraryLoader = class(TBrookHandledComponent)

Description

Class for dynamic library loading.

Hierarchy

Overview

Fields

Public nested const LIB_NAME = SG_LIB_NAME;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public class procedure Load(const ALibraryName: TFileName); overload; static;
Public class procedure Load; overload; static;
Public class procedure Unload; static;
Public class function IsLoaded: Boolean; static;
Public procedure Open; virtual;
Public procedure Close; virtual;

Properties

Published property Active: Boolean read FActive write SetActive stored IsActiveStored;
Published property LibraryName: TFileName read FLibraryName write SetLibraryName stored IsLibraryNameStored;
Published property Version: string read FVersion stored False;
Published property OnLoad: TNotifyEvent read FOnLoad write FOnLoad;
Published property OnUnload: TNotifyEvent read FOnUnload write FOnUnload;

Description

Fields

Public nested const LIB_NAME = SG_LIB_NAME;

Default library name.

Methods

Public constructor Create(AOwner: TComponent); override;

Creates an instance of TBrookLibraryLoader.

Parameters
AOwner[in]
Owner component.
Public destructor Destroy; override;

Destroys an instance of TBrookLibraryLoader.

Public class procedure Load(const ALibraryName: TFileName); overload; static;

Loads the library dynamically.

Parameters
ALibraryName
Library name.
Public class procedure Load; overload; static;

Loads the library dynamically.

Public class procedure Unload; static;

Unloads the library dynamically.

Public class function IsLoaded: Boolean; static;

Checks if the library is already loaded.

Public procedure Open; virtual;

Loads the library dynamically.

Public procedure Close; virtual;

Unloads the library dynamically.

Properties

Published property Active: Boolean read FActive write SetActive stored IsActiveStored;

Loads/Unloads the library dynamically.

Published property LibraryName: TFileName read FLibraryName write SetLibraryName stored IsLibraryNameStored;

Specifies the library to be loaded dynamically.

Published property Version: string read FVersion stored False;

Version of the loaded library.

Published property OnLoad: TNotifyEvent read FOnLoad write FOnLoad;

Notifies that the library is loaded.

Published property OnUnload: TNotifyEvent read FOnUnload write FOnUnload;

Notifies that the library is unloaded.


Generated by PasDoc 0.16.0.