Nui
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Microsoft::WRL::Wrappers::HString Class Reference

#include <corewrappers.h>

Public Member Functions

 HString () throw ()
 
 HString (_Inout_ HString &&other) throw ()
 
 ~HString () throw ()
 
HStringoperator= (_Inout_ HString &&other) throw ()
 
HRESULT Set (_In_reads_opt_(len) const wchar_t *str, unsigned int len) throw ()
 
template<size_t sizeDest>
HRESULT Set (const wchar_t(&str)[sizeDest]) throw ()
 
template<size_t sizeDest>
HRESULT Set (_In_z_ wchar_t(&strRef)[sizeDest]) throw ()
 
template<typename T >
HRESULT Set (__in_opt const T &strRef, typename ::Microsoft::WRL::Details::EnableIf< __is_convertible_to(T, const wchar_t *), ::Microsoft::WRL::Details::Dummy >::type=::Microsoft::WRL::Details::Dummy()) throw ()
 
HRESULT Set (const HSTRING &str) throw ()
 
void Attach (_In_opt_ HSTRING hstr) throw ()
 
HSTRING Detach () throw ()
 
HSTRING * GetAddressOf () throw ()
 
HSTRING Get () const throw ()
 
void Release () throw ()
 
bool IsValid () const throw ()
 
const wchar_t * GetRawBuffer (_Out_opt_ unsigned int *length) const
 
HRESULT CopyTo (_Outptr_result_maybenull_ _Result_nullonfailure_ HSTRING *str) const throw ()
 

Static Public Member Functions

template<unsigned int sizeDest>
static HStringReference MakeReference (wchar_t const (&str)[sizeDest]) throw ()
 
template<unsigned int sizeDest>
static HStringReference MakeReference (wchar_t const (&str)[sizeDest], unsigned int len) throw ()
 

Protected Attributes

HSTRING hstr_
 

Constructor & Destructor Documentation

◆ HString() [1/2]

Microsoft::WRL::Wrappers::HString::HString ( )
throw (
)
inline

◆ HString() [2/2]

Microsoft::WRL::Wrappers::HString::HString ( _Inout_ HString &&  other)
throw (
)
inline

◆ ~HString()

Microsoft::WRL::Wrappers::HString::~HString ( )
throw (
)
inline

Member Function Documentation

◆ Attach()

void Microsoft::WRL::Wrappers::HString::Attach ( _In_opt_ HSTRING  hstr)
throw (
)
inline

◆ CopyTo()

HRESULT Microsoft::WRL::Wrappers::HString::CopyTo ( _Outptr_result_maybenull_ _Result_nullonfailure_ HSTRING *  str) const
throw (
)
inline

◆ Detach()

HSTRING Microsoft::WRL::Wrappers::HString::Detach ( )
throw (
)
inline

◆ Get()

HSTRING Microsoft::WRL::Wrappers::HString::Get ( ) const
throw (
)
inline

◆ GetAddressOf()

HSTRING* Microsoft::WRL::Wrappers::HString::GetAddressOf ( )
throw (
)
inline

◆ GetRawBuffer()

const wchar_t* Microsoft::WRL::Wrappers::HString::GetRawBuffer ( _Out_opt_ unsigned int *  length) const
inline

◆ IsValid()

bool Microsoft::WRL::Wrappers::HString::IsValid ( ) const
throw (
)
inline

◆ MakeReference() [1/2]

template<unsigned int sizeDest>
HStringReference Microsoft::WRL::Wrappers::HString::MakeReference ( wchar_t const (&)  str[sizeDest])
throw (
)
inlinestatic

◆ MakeReference() [2/2]

template<unsigned int sizeDest>
HStringReference Microsoft::WRL::Wrappers::HString::MakeReference ( wchar_t const (&)  str[sizeDest],
unsigned int  len 
)
throw (
)
inlinestatic

◆ operator=()

HString& Microsoft::WRL::Wrappers::HString::operator= ( _Inout_ HString &&  other)
throw (
)
inline

◆ Release()

void Microsoft::WRL::Wrappers::HString::Release ( )
throw (
)
inline

◆ Set() [1/5]

template<typename T >
HRESULT Microsoft::WRL::Wrappers::HString::Set ( __in_opt const T &  strRef,
typename ::Microsoft::WRL::Details::EnableIf< __is_convertible_to(T, const wchar_t *), ::Microsoft::WRL::Details::Dummy >::type  = ::Microsoft::WRL::Details::Dummy() 
)
throw (
)
inline

◆ Set() [2/5]

HRESULT Microsoft::WRL::Wrappers::HString::Set ( _In_reads_opt_(len) const wchar_t *  str,
unsigned int  len 
)
throw (
)
inline

◆ Set() [3/5]

template<size_t sizeDest>
HRESULT Microsoft::WRL::Wrappers::HString::Set ( _In_z_ wchar_t(&)  strRef[sizeDest])
throw (
)
inline

◆ Set() [4/5]

HRESULT Microsoft::WRL::Wrappers::HString::Set ( const HSTRING &  str)
throw (
)
inline

◆ Set() [5/5]

template<size_t sizeDest>
HRESULT Microsoft::WRL::Wrappers::HString::Set ( const wchar_t(&)  str[sizeDest])
throw (
)
inline

Member Data Documentation

◆ hstr_

HSTRING Microsoft::WRL::Wrappers::HString::hstr_
protected

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