Back to index

unity  6.0.0
Public Member Functions | Private Attributes
unity::glib::Error Class Reference

#include <GLibWrapper.h>

Inheritance diagram for unity::glib::Error:
Inheritance graph
[legend]
Collaboration diagram for unity::glib::Error:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Error ()
 ~Error ()
GError ** AsOutParam ()
GError ** operator& ()
 operator GError * ()
 operator bool () const
std::string Message () const

Private Attributes

GError * error_

Detailed Description

Definition at line 88 of file GLibWrapper.h.


Constructor & Destructor Documentation

Definition at line 27 of file GLibWrapper.cpp.

  : error_(0)
{}

Definition at line 31 of file GLibWrapper.cpp.

{
  if (error_)
    g_error_free(error_);
}

Member Function Documentation

Definition at line 37 of file GLibWrapper.cpp.

{
  return &error_;
}

Here is the caller graph for this function:

std::string unity::glib::Error::Message ( ) const

Definition at line 57 of file GLibWrapper.cpp.

{
  std::string result;
  if (error_)
    result = error_->message;
  return result;
}

Here is the caller graph for this function:

unity::glib::Error::operator bool ( ) const

Definition at line 47 of file GLibWrapper.cpp.

{
  return bool(error_);
}
unity::glib::Error::operator GError * ( )

Definition at line 52 of file GLibWrapper.cpp.

{
    return error_;
}
GError ** unity::glib::Error::operator& ( )

Definition at line 42 of file GLibWrapper.cpp.

{
  return &error_;
}

Member Data Documentation

GError* unity::glib::Error::error_ [private]

Definition at line 103 of file GLibWrapper.h.


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