OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TRegistrar Class Reference

Application registration manager interface class. More...

#include <ocf/ocreg.h>

Inheritance diagram for ocf::TRegistrar:
ocf::TOcRegistrar

Public Member Functions

 TRegistrar (owl::TRegList &regInfo, TComponentFactory callback, owl::tstring &cmdLine, owl::TModule *module=&owl::GetGlobalModule())
 
virtual ~TRegistrar ()
 
TUnknownCreateAutoApp (TObjectDescriptor app, owl::uint32 options, IUnknown *outer=0)
 
void ReleaseAutoApp (TObjectDescriptor app)
 
TUnknownCreateAutoObject (TObjectDescriptor doc, TServedObject &app, IUnknown *outer=0)
 
TUnknownCreateAutoObject (const void *obj, const std::type_info &objInfo, const void *app, const std::type_info &appInfo, IUnknown *outer=0)
 
virtual voidGetFactory (const GUID &clsid, const GUID &iid)
 
virtual bool CanUnload ()
 
virtual int Run ()
 
virtual void Shutdown (IUnknown *releasedObj, owl::uint32 options)
 
void RegisterAppClass ()
 
void UnregisterAppClass ()
 
bool IsOptionSet (owl::uint32 option) const
 
owl::uint32 GetOptions () const
 
void SetOption (owl::uint32 bit, bool state)
 
void ProcessCmdLine (owl::tstring &cmdLine)
 
TAppDescriptorGetAppDescriptor ()
 

Static Public Member Functions

static TRegistrarGetNext (TRegistrar *reg)
 

Protected Member Functions

 TRegistrar (TAppDescriptor &appDesc)
 

Protected Attributes

TAppDescriptorAppDesc
 

Detailed Description

Application registration manager interface class.

Definition at line 109 of file ocreg.h.

Constructor & Destructor Documentation

◆ TRegistrar() [1/2]

ocf::TRegistrar::TRegistrar ( owl::TRegList & regInfo,
TComponentFactory callback,
owl::tstring & cmdLine,
owl::TModule * module = owl::GetGlobalModule() )

Definition at line 384 of file ocreg.cpp.

References TRACEX.

◆ ~TRegistrar()

ocf::TRegistrar::~TRegistrar ( )
virtual

Definition at line 408 of file ocreg.cpp.

References AppDesc.

◆ TRegistrar() [2/2]

ocf::TRegistrar::TRegistrar ( TAppDescriptor & appDesc)
protected

Definition at line 397 of file ocreg.cpp.

Member Function Documentation

◆ CanUnload()

bool ocf::TRegistrar::CanUnload ( )
virtual

Reimplemented in ocf::TOcRegistrar.

Definition at line 439 of file ocreg.cpp.

References AppDesc, and ocf::TAppDescriptor::IsBound().

◆ CreateAutoApp()

TUnknown * ocf::TRegistrar::CreateAutoApp ( TObjectDescriptor app,
owl::uint32 options,
IUnknown * outer = 0 )
inline

Definition at line 292 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::CreateAutoApp().

◆ CreateAutoObject() [1/2]

TUnknown * ocf::TRegistrar::CreateAutoObject ( const void * obj,
const std::type_info & objInfo,
const void * app,
const std::type_info & appInfo,
IUnknown * outer = 0 )
inline

Definition at line 317 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::CreateAutoObject().

◆ CreateAutoObject() [2/2]

TUnknown * ocf::TRegistrar::CreateAutoObject ( TObjectDescriptor doc,
TServedObject & app,
IUnknown * outer = 0 )
inline

Definition at line 308 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::CreateAutoObject().

◆ GetAppDescriptor()

TAppDescriptor & ocf::TRegistrar::GetAppDescriptor ( )
inline

Definition at line 153 of file ocreg.h.

◆ GetFactory()

void * ocf::TRegistrar::GetFactory ( const GUID & clsid,
const GUID & iid )
virtual

Reimplemented in ocf::TOcRegistrar.

Definition at line 427 of file ocreg.cpp.

References ocf::TAppDescriptor::AppClassId, and AppDesc.

◆ GetNext()

TRegistrar * ocf::TRegistrar::GetNext ( TRegistrar * reg)
static

Definition at line 419 of file ocreg.cpp.

◆ GetOptions()

owl::uint32 ocf::TRegistrar::GetOptions ( ) const
inline

Definition at line 350 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::GetOptions().

◆ IsOptionSet()

bool ocf::TRegistrar::IsOptionSet ( owl::uint32 option) const
inline

Definition at line 343 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::IsOptionSet().

◆ ProcessCmdLine()

void ocf::TRegistrar::ProcessCmdLine ( owl::tstring & cmdLine)
inline

Definition at line 365 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::ProcessCmdLine().

◆ RegisterAppClass()

void ocf::TRegistrar::RegisterAppClass ( )
inline

Definition at line 327 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::RegisterClass().

◆ ReleaseAutoApp()

void ocf::TRegistrar::ReleaseAutoApp ( TObjectDescriptor app)
inline

Definition at line 300 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::ReleaseAutoApp().

◆ Run()

◆ SetOption()

void ocf::TRegistrar::SetOption ( owl::uint32 bit,
bool state )
inline

Definition at line 357 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::SetOption().

◆ Shutdown()

void ocf::TRegistrar::Shutdown ( IUnknown * releasedObj,
owl::uint32 options )
virtual

Definition at line 469 of file ocreg.cpp.

References ocf::amShutdown, AppDesc, and ocf::TAppDescriptor::GetFactory().

◆ UnregisterAppClass()

void ocf::TRegistrar::UnregisterAppClass ( )
inline

Definition at line 335 of file ocreg.h.

References AppDesc, and ocf::TAppDescriptor::UnregisterClass().

Member Data Documentation

◆ AppDesc

TAppDescriptor& ocf::TRegistrar::AppDesc
protected

Definition at line 157 of file ocreg.h.


The documentation for this class was generated from the following files: