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

The mixin class used for the common (DLL/EXE) COM server behaviour. More...

#include <Server.hpp>

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

List of all members.

Public Member Functions

long LockCount () const
 Query the lock count.
virtual void Lock ()
 Lock the server.
virtual void Unlock ()
 Unlock the server.
ITypeLibPtr LoadTypeLibrary () const
 Load the type library.

Static Public Member Functions

static ServerThis ()
 Singleton accessor.

Protected Member Functions

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

Private Attributes

long m_nLockCount
 The lock count.

Static Private Attributes

static Serverg_pThis = NULL
 The singleton COM server.

Detailed Description

The mixin class used for the common (DLL/EXE) COM server behaviour.


Constructor & Destructor Documentation

COM::Server::Server ( ) [protected]

Default constructor.

COM::Server::~Server ( ) [protected, virtual]

Destructor.


Member Function Documentation

long COM::Server::LockCount ( ) const [inline]

Query the lock count.

Server & COM::Server::This ( ) [static]

Singleton accessor.

Reimplemented in COM::InprocServer.

void COM::Server::Lock ( ) [virtual]

Lock the server.

This is used to ensure that the server is not unloaded whilst it still has objects alive.

void COM::Server::Unlock ( ) [virtual]

Unlock the server.

Load the type library.


Member Data Documentation

long COM::Server::m_nLockCount [private]

The lock count.

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

The singleton COM server.

Reimplemented in COM::InprocServer.


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