COM Library
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Attributes | Friends
COM::InprocServer Class Reference

The base class for In-prcoess (DLL based) servers. More...

#include <InprocServer.hpp>

Inheritance diagram for COM::InprocServer:
COM::Server

List of all members.

Public Member Functions

 InprocServer ()
 Default constructor.
virtual ~InprocServer ()
 Destructor.

Static Public Member Functions

static InprocServerThis ()
 Singleton accessor.

Protected Member Functions

virtual HRESULT DllGetClassObject (REFCLSID roCLSID, REFIID roIID, LPVOID *ppFactory)
 Get the class factory.
virtual HRESULT DllCanUnloadNow ()
 Query if the server can be unloaded.
virtual HRESULT DllRegisterServer ()
 Register the server in the registry.
virtual HRESULT DllUnregisterServer ()
 Unregister the server from the registry.
virtual void GetServerRegInfo (ServerRegInfo &oInfo) const =0
 Template Method used to obtain the server type information.
virtual const ClassRegInfoGetClassRegInfo () const =0
 Template Method used to obtain the server coclasses information.
virtual COM::IClassFactoryPtr CreateClassFactory (const CLSID &oCLSID)
 Template Method to get the servers class factory.
virtual COM::IUnknownPtr CreateObject (const CLSID &oCLSID)=0
 Template Method to allocate an object for the class factory.

Static Private Attributes

static InprocServerg_pThis = NULL
 The singleton inproc server.

Friends

class ClassFactory
HRESULT STDAPICALLTYPE::DllGetClassObject (REFCLSID oCLSID, REFIID oIID, LPVOID *ppFactory)
HRESULT STDAPICALLTYPE::DllCanUnloadNow (void)
HRESULT STDAPICALLTYPE::DllRegisterServer (void)
HRESULT STDAPICALLTYPE::DllUnregisterServer (void)

Detailed Description

The base class for In-prcoess (DLL based) servers.


Constructor & Destructor Documentation

Default constructor.

Destructor.


Member Function Documentation

Singleton accessor.

Reimplemented from COM::Server.

HRESULT COM::InprocServer::DllGetClassObject ( REFCLSID  roCLSID,
REFIID  roIID,
LPVOID *  ppFactory 
) [protected, virtual]

Get the class factory.

HRESULT COM::InprocServer::DllCanUnloadNow ( ) [protected, virtual]

Query if the server can be unloaded.

HRESULT COM::InprocServer::DllRegisterServer ( ) [protected, virtual]

Register the server in the registry.

HRESULT COM::InprocServer::DllUnregisterServer ( ) [protected, virtual]

Unregister the server from the registry.

virtual void COM::InprocServer::GetServerRegInfo ( ServerRegInfo oInfo) const [protected, pure virtual]

Template Method used to obtain the server type information.

virtual const ClassRegInfo* COM::InprocServer::GetClassRegInfo ( ) const [protected, pure virtual]

Template Method used to obtain the server coclasses information.

COM::IClassFactoryPtr COM::InprocServer::CreateClassFactory ( const CLSID &  oCLSID) [protected, virtual]

Template Method to get the servers class factory.

virtual COM::IUnknownPtr COM::InprocServer::CreateObject ( const CLSID &  oCLSID) [protected, pure virtual]

Template Method to allocate an object for the class factory.


Friends And Related Function Documentation

friend class ClassFactory [friend]
HRESULT STDAPICALLTYPE::DllGetClassObject ( REFCLSID  oCLSID,
REFIID  oIID,
LPVOID *  ppFactory 
) [friend]
HRESULT STDAPICALLTYPE::DllCanUnloadNow ( void  ) [friend]
HRESULT STDAPICALLTYPE::DllRegisterServer ( void  ) [friend]
HRESULT STDAPICALLTYPE::DllUnregisterServer ( void  ) [friend]

Member Data Documentation

InprocServer * COM::InprocServer::g_pThis = NULL [static, private]

The singleton inproc server.

Reimplemented from COM::Server.


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