OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TOcAutoFactory< T > Class Template Reference

Simple factory for Automation Server. More...

#include <ocf/ocreg.h>

Public Member Functions

 operator TComponentFactory ()
 

Static Public Member Functions

static T * CreateApp (HINSTANCE hInst, owl::uint32 options)
 Called when the app is not found and needs to be created.
 
static int RunApp (T *app)
 Called to run the application message loop if an EXE, or DLL in amExeMode.
 
static void DestroyApp (T *app)
 Called to destroy the application previously created.
 
static IUnknown * Create (IUnknown *outer, owl::uint32 options, owl::uint32 id)
 Main Create callback function called to create app.
 

Detailed Description

template<class T>
class ocf::TOcAutoFactory< T >

Simple factory for Automation Server.

Definition at line 204 of file ocreg.h.

Member Function Documentation

◆ Create()

template<class T >
IUnknown * ocf::TOcAutoFactory< T >::Create ( IUnknown * outer,
owl::uint32 options,
owl::uint32 id )
static

Main Create callback function called to create app.

Definition at line 256 of file ocreg.h.

References ocf::amAutomation, ocf::amRun, ocf::amServedApp, ocf::amShutdown, CHECK, owl::GetGlobalModule(), and Registrar.

◆ CreateApp()

template<class T >
T * ocf::TOcAutoFactory< T >::CreateApp ( HINSTANCE hInst,
owl::uint32 options )
static

Called when the app is not found and needs to be created.

Definition at line 223 of file ocreg.h.

◆ DestroyApp()

template<class T >
void ocf::TOcAutoFactory< T >::DestroyApp ( T * app)
static

Called to destroy the application previously created.

Definition at line 247 of file ocreg.h.

◆ operator TComponentFactory()

Definition at line 206 of file ocreg.h.

References ocf::TOcAutoFactory< T >::Create().

◆ RunApp()

template<class T >
int ocf::TOcAutoFactory< T >::RunApp ( T * app)
static

Called to run the application message loop if an EXE, or DLL in amExeMode.

Definition at line 233 of file ocreg.h.


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