Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils::ScopedGError Class Reference

#include <scoped-gerror.hpp>

Public Member Functions

 ScopedGError ()
 
 ScopedGError (ScopedGError &&)
 
 ~ScopedGError ()
 
 ScopedGError (const ScopedGError &)=delete
 
ScopedGErroroperator= (const ScopedGError &)=delete
 
bool strip ()
 Strip the error. More...
 
 operator bool () const
 Is error pointer NULL? More...
 
GError ** operator& ()
 
const GError * operator-> () const
 

Private Attributes

GError * mError
 

Friends

std::ostream & operator<< (std::ostream &os, const ScopedGError &e)
 Writes out the error message. More...
 

Constructor & Destructor Documentation

utils::ScopedGError::ScopedGError ( )
utils::ScopedGError::ScopedGError ( ScopedGError &&  other)
utils::ScopedGError::~ScopedGError ( )
utils::ScopedGError::ScopedGError ( const ScopedGError )
delete

Member Function Documentation

utils::ScopedGError::operator bool ( ) const

Is error pointer NULL?

GError ** utils::ScopedGError::operator& ( )
Returns
pointer to the GError
const GError * utils::ScopedGError::operator-> ( ) const
Returns
the GError
ScopedGError& utils::ScopedGError::operator= ( const ScopedGError )
delete
bool utils::ScopedGError::strip ( )

Strip the error.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ScopedGError e 
)
friend

Writes out the error message.

Parameters
osthe output stream
eerror to write out

Member Data Documentation

GError* utils::ScopedGError::mError
private

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