atlstl/automation/property_method_helpers.hpp File Reference


Detailed Description

[C++ only; requires ATL library] Definition of the atlstl::get_MemberValue(), atlstl::put_MemberValue() and atlstl::get_ConstantValue() function suites, which simplify the definition of property methods in ATL COM servers (COM Automation Library).

#include <atlstl/atlstl.hpp>

Go to the source code of this file.

Namespaces

namespace  atlstl

Functions

template<class C, typename T>
HRESULT get_MemberValue (C *const cls, T *ret, T C::*mem)
 Inline retrieval of member variable value.
template<class C, typename T>
HRESULT get_MemberValue (C *const cls, T **ret, T *C::*mem)
 Ghost overload to prevent use of get_MemberValue with pointer types.
template<class C>
HRESULT get_MemberValue (C *const cls, BSTR *ret, CComBSTR C::*mem)
 Inline retrieval of a CComBSTR member variable value.
template<class C>
HRESULT get_MemberValue (C *const cls, VARIANT *ret, CComVariant C::*mem)
 Inline retrieval of a VARIANT member variable value.
template<class C, typename T, typename T2>
HRESULT get_MemberValue (C *const cls, T *ret, T2(C::*pfn)() const)
 Inline retrieval of method value.
template<typename C, typename T>
HRESULT put_MemberValue (C *const cls, T const &newVal, T C::*mem)
 Inline assignment of a member variable value.
template<typename C>
HRESULT put_MemberValue (C *const cls, BSTR newVal, CComBSTR C::*mem)
 Inline assignment of a CComBSTR member variable value.
template<typename C>
HRESULT put_MemberValue (C *const cls, CComBSTR const &newVal, CComBSTR C::*mem)
 Inline assignment of a CComBSTR member variable value.
template<typename C>
HRESULT put_MemberValue (C *const cls, CComVariant const &newVal, CComVariant C::*mem)
 Inline assignment of a CComVariant member variable value.
template<typename T1, typename T2>
HRESULT get_ConstantValue (T1 *ret, T2 const &value)
 Shorthand for implementing methods that return a constant value.


Generated on Thu Jun 10 08:57:55 2010 for STLSoft by  doxygen 1.5.6