TSObject_Manager
What: class
Ancestor: TBase_Delphi_Object
File: _ObjectM
Layer: 1
Platforms: C++, C#, Javascript, Pascal (Object), PHP, Python
This is an abstract base class for object managers. It contains the following methods:
Add_Object
void Add_Object( void* O, int32 Facility, void* Context )
procedure Add_Object( O : pointer ; Facility : integer ; Context : pointer )
Add an object and context.
Construct
void* Construct( PSStream Stream )
function Construct( Stream : TStream ) : pointer
Constructs an instance of a facility from the stream and returns it.
Find_Object
bool Find_Object( void* O, int32 Facility )
function Find_Object( O : pointer ; Facility : integer ) : boolean
Return True if specified object is registered, False otherwise.
Get_Context
void* Get_Context( int32 Index )
function Get_Context( Index : integer ) : pointer
Returns the context associated with the index.
Get_Facility
int32 Get_Facility( int32 Index )
function Get_Facility( Index : integer ) : integer
Returns the facility associated with the index.
Get_Facility_Manager
PSFacility_Manager Get_Facility_Manager( int32 Index )
function Get_Facility_Manager( Index : longint ) : TFacility_Manager
Returns an instance of a facility manager.
Get_Object
void* Get_Object( int32 Index )
function Get_Object( Index : integer ) : pointer
Returns the object associated with the index.
Object_Count
int32 Object_Count()
function Object_Count : longint
Returns the count of registered obejcts.
Register_Facility
void Register_Facility( PSFacility_Manager Facility_Manager )
procedure Register_Facility( Facility_Manager : TFacility_Manager )
Registers the passed facility.
Remove_Facility
void Remove_Facility( PSFacility_Manager Facility_Manager )
procedure Remove_Facility( Facility_Manager : TFacility_Manager )
Removes a previously registered facility.
Remove_Object
void Remove_Object( void* O, int32 Facility )
procedure Remove_Object( O : pointer ; Facility : longint )
Remove the specified registered object.