BSTR_policy Struct Reference
[COM Utility Library]

#include <comstl/util/value_policies.hpp>

List of all members.


Detailed Description

Value policy for BSTR.

See also:
comstl::collection_sequence

comstl::enumerator_sequence


Public Types

typedef BSTR value_type

Static Public Member Functions

static void init (value_type *p) throw ()
 Initialises an instance.
static void copy (value_type *dest, value_type const *src)
 Initialises an instance from another.
static void clear (value_type *p) throw ()
 Releases an instance.

Member Function Documentation

static void init ( value_type *  p  )  throw () [inline, static]

Initialises an instance.

In the case of the BSTR type, this involves setting the value to NULL

static void copy ( value_type *  dest,
value_type const *  src 
) [inline, static]

Initialises an instance from another.

In the case of the BSTR type, this involves calling SysAllocString()

Exceptions:
comstl::com_exception If exception support is enabled, an instance of comstl::com_exception will be thrown if the copy cannot be made

static void clear ( value_type *  p  )  throw () [inline, static]

Releases an instance.

In the case of the BSTR type, this involves calling SysFreeString()


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

Generated on Thu Jun 10 08:58:27 2010 for STLSoft by  doxygen 1.5.6