The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CUsesCOM Class Reference
[RAII - Resource Acquisition Is Initialization]

Inheritance diagram for CUsesCOM:

List of all members.


Detailed Description

A simple object to support scope based COM initialisation and uninitialisation. Create an instance of this at the scope where you want COM to be available and it will be automatically uninitialised when the scope ends.

Public Types

enum  ApartmentType { TNA = 0, STA = 1, MTA = 2 }

Public Member Functions

 CUsesCOM (DWORD dwCoInit=COINIT_APARTMENTTHREADED)
 CUsesCOM (const CUsesCOM &rhs)
virtual ~CUsesCOM ()
CUsesCOMoperator= (const CUsesCOM &rhs)

Static Public Member Functions

static bool IsSTA ()
static bool IsMTA ()
static ApartmentType GetApartmentType ()
static Core::_tstring GetApartmentTypeAsString ()

Member Enumeration Documentation

Enumerator:
TNA 
STA 
MTA 


Constructor & Destructor Documentation

CUsesCOM ( DWORD  dwCoInit = COINIT_APARTMENTTHREADED  )  [explicit]

CUsesCOM ( const CUsesCOM rhs  ) 

~CUsesCOM (  )  [virtual]


Member Function Documentation

CUsesCOM& operator= ( const CUsesCOM rhs  ) 

bool IsSTA (  )  [static]

bool IsMTA (  )  [static]

CUsesCOM::ApartmentType GetApartmentType (  )  [static]

_tstring GetApartmentTypeAsString (  )  [static]


Generated on Sun Sep 12 19:11:53 2021 for The Server Framework - v7.4 by doxygen 1.5.3