Scope
HResultT< ThrowException > Class Template Reference

#include <hresult_exception.h>

Public Member Functions

 HResultT (const HRESULT &_hr=S_OK, const char _function[]="none")
 
LPCTSTR ErrrorMessage () const
 
 operator HRESULT () const
 
some helpfull operator overloads
HResultToperator() (const char _function[]="none")
 
HResultToperator() (const HRESULT &_hr, const char _function[]="none")
 
HResultToperator= (const HRESULT &_hr)
 

Protected Member Functions

void Assign (const HRESULT &_hr)
 

Protected Attributes

HRESULT hr
 
char function [255]
 
std::basic_string< WCHAR > desc
 

Detailed Description

template<bool ThrowException>
class HResultT< ThrowException >

Class around a HRESULT which breaks down the HRESULT code and makes life easier etc.

Definition at line 59 of file hresult_exception.h.

Constructor & Destructor Documentation

template<bool ThrowException>
HResultT< ThrowException >::HResultT ( const HRESULT &  _hr = S_OK,
const char  _function[] = "none" 
)
inline

Constructor.

Definition at line 83 of file hresult_exception.h.

Member Function Documentation

template<bool ThrowException>
void HResultT< ThrowException >::Assign ( const HRESULT &  _hr)
inlineprotected

Assign a HRESULT.

Definition at line 73 of file hresult_exception.h.

template<bool ThrowException>
LPCTSTR HResultT< ThrowException >::ErrrorMessage ( ) const
inline
Returns
"Error"

Definition at line 109 of file hresult_exception.h.

template<bool ThrowException>
HResultT< ThrowException >::operator HRESULT ( ) const
inline
Returns
the HRESULT

Definition at line 114 of file hresult_exception.h.

Member Data Documentation

template<bool ThrowException>
HRESULT HResultT< ThrowException >::hr
protected

HRESULT.

Definition at line 63 of file hresult_exception.h.

template<bool ThrowException>
char HResultT< ThrowException >::function[255]
protected

function where exception occured

Definition at line 66 of file hresult_exception.h.

template<bool ThrowException>
std::basic_string<WCHAR> HResultT< ThrowException >::desc
protected

more description

Definition at line 69 of file hresult_exception.h.


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