All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

SPAadm Class ADM_regobj_factory_mgr

ADM_regobj_factory_mgr
 

Usage: you must use this class as is. You should never derive it.


public class ADM_regobj_factory_mgr

Manages the singleton DM_regobj_factory providing global access to the unique instance.

Role: The ADM_regobj_factory_mgr is used by the ADM kernel as its access to the singleton ADM_regobj_factory. When the admgi_control library is initialized, it creates a concrete ADM_regobj_factory and loads it into the ADM_regobj_factory_mgr using the Replace_factory method. Users replacing the admgi_control library should do the same. If no concrete ADM_regobj_factory is loaded into the ADM_regobj_factory_mgr, the dmicon library will not draw.

Related classes: Access to a concrete ADM_regobjs is provided by the ADM_regobj_factory_mgr::Make_regobj method.


Constructor and Destructor Index


o ADM_regobj_factory_mgr()
Default constructor.
o ~ADM_regobj_factory_mgr()
Default destructor.

Method Index


o Make_regobj(Spatial_abs_hurler&,ATTRIB_DM2ACIS*)
Returns a concrete ADM_regobj.
o Replace_factory(Spatial_abs_hurler&,ADM_regobj_factory*&)
Loads a concrete ADM_regobj_factory.

Constructor and Destructor


o ADM_regobj_factory_mgr
public ADM_regobj_factory_mgr()
Default constructor.

Role: Users should not call a single static instance.
o ~ADM_regobj_factory_mgr
public ~ADM_regobj_factory_mgr()
Default destructor.

Methods


o Make_regobj
public static ADM_regobj* Make_regobj(Spatial_abs_hurler& err_handler,
ATTRIB_DM2ACIS* att)
Returns a concrete ADM_regobj.

Role: ATTRIB_DM2ACIS specifies what to register with the view controller.

Parameters:
err_handler
error handler.
att
attribute.
o Replace_factory
public static void Replace_factory(Spatial_abs_hurler& err_handler,
ADM_regobj_factory*& owner)
Loads a concrete ADM_regobj_factory.

Parameters:
err_handler
error handler.
owner
take ownership.

This object is included in the file: admregobj_factory_mgr.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.