STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

initialiser Class Template Reference

Initialises the COM libraries. More...

#include <comstl_initialisers.h>

List of all members.

Public Types

typedef IP initialisation_policy_type
 The initialiation policy type.

typedef XP exception_policy_type
 The exception type.

typedef exception_policy_type::thrown_type thrown_type
 The thrown type.


Public Methods

 initialiser ()
 Initialises via CoInitialize().

 initialiser (cs_dword_t dwInit)
 Initialises via CoInitializeEx() taking b>COINIT_* flags.

 ~initialiser () comstl_throw_0()
 Uninitialises via CoUninitialize().

cs_bool_t is_initialised () const
 Reflects whether the COM libraries were initialised.

cs_bool_t operator! () const
 Reflects whether the COM libraries were not initialised.

HRESULT get_HRESULT () const
 The result of the call to CoInitialize()/CoInitializeEx().


Detailed Description

template<typename IP, typename XP>
class comstl::initialiser< IP, XP >

Initialises the COM libraries.

This class is used to initialise the COM libraries. It can respond to CoInitializeEx argument flags when translated in a DCOM build.


Member Typedef Documentation

typedef XP exception_policy_type
 

The exception type.

typedef IP initialisation_policy_type
 

The initialiation policy type.

typedef exception_policy_type::thrown_type thrown_type
 

The thrown type.


Constructor & Destructor Documentation

initialiser   [inline]
 

Initialises via CoInitialize().

initialiser cs_dword_t    dwInit [inline, explicit]
 

Initialises via CoInitializeEx() taking b>COINIT_* flags.

~initialiser   [inline]
 

Uninitialises via CoUninitialize().


Member Function Documentation

HRESULT get_HRESULT   [inline]
 

The result of the call to CoInitialize()/CoInitializeEx().

cs_bool_t is_initialised   [inline]
 

Reflects whether the COM libraries were initialised.

cs_bool_t operator!   [inline]
 

Reflects whether the COM libraries were not initialised.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004