libgdamm Reference Documentation
Main Page   Namespaces   Book  

Gnome::Gda::Error Class Reference
[Data Handlers]

This objects is the boxed type of a Glib::Error. More...

List of all members.

Public Member Functions

 Error (const Error& other)
 Error (GError* gobject, bool make_a_copy=true)
 Error ()
Glib::Error gerror ()
const GError* gobj () const
 Provides access to the underlying C instance.
GError* gobj ()
 Provides access to the underlying C instance.
GError* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
Erroroperator= (const Error& other)
void swap (Error& other)
 ~Error ()

Protected Attributes

GError* gobject_

Related Functions

(Note that these are not member functions.)

void swap (Error& lhs, Error& rhs)
Gnome::Gda::Error wrap (GError* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Detailed Description

This objects is the boxed type of a Glib::Error.

This is used to pass Glib::Error savely through signals. You can use the gerror() method to access the underlying Glib::Error.


Constructor& Destructor Documentation

Gnome::Gda::Error::Error (  ) 

Gnome::Gda::Error::Error ( GError *  gobject,
bool  make_a_copy = true 
) [explicit]

Gnome::Gda::Error::Error ( const Error other  ) 

Gnome::Gda::Error::~Error (  ) 


Member Function Documentation

Glib::Error Gnome::Gda::Error::gerror (  )  [inline]

References gobj().

const GError* Gnome::Gda::Error::gobj (  )  const [inline]

Provides access to the underlying C instance.

References gobject_.

GError* Gnome::Gda::Error::gobj (  )  [inline]

Provides access to the underlying C instance.

References gobject_.

Referenced by gerror().

GError* Gnome::Gda::Error::gobj_copy (  )  const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

Error& Gnome::Gda::Error::operator= ( const Error other  ) 

void Gnome::Gda::Error::swap ( Error other  ) 

Referenced by swap().


Friends And Related Function Documentation

void swap ( Error lhs,
Error rhs 
) [related]

Parameters:
lhs The left-hand side
rhs The right-hand side

References swap().

Gnome::Gda::Error wrap ( GError *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


Member Data Documentation

GError* Gnome::Gda::Error::gobject_ [protected]

Referenced by gobj().


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

Generated for libgdamm by Doxygen 1.5.6 © 1997-2001