ClearSilver::ClearSilverError Class Reference

Encapsulation of ClearSilver C API for errors. More...

#include <ClearSilverError.h>

List of all members.

Public Member Functions

 ClearSilverError ()
 ClearSilverError (_neo_err *error)
 ClearSilverError (const ClearSilverError &)
 ~ClearSilverError () throw ()
ClearSilverErroroperator= (const ClearSilverError &)
 operator bool () const
 Is the error list empty?
_neo_err * get () const
 Return the head of the error list.
void swap (ClearSilverError &) throw ()


Detailed Description

Encapsulation of ClearSilver C API for errors.

This class provides memory management for ClearSilver error lists. Many of the functions within the ClearSilver C API return a (possibly empty) list of error structures. This class provides the means of testing for the presence of an error list and for later freeing the associated memory (if necessary). It also provides access to the error list for the purpose of constructing a ClearSilverException object that contains the error information.

This class is not intended as a primary interface for ClearSilver errors. Rather it provides the implementation for use by the primary exception class, ClearSilverException.

Definition at line 67 of file ClearSilverError.h.


The documentation for this class was generated from the following files:
Generated on Tue May 16 14:50:53 2006 for ClearSilver C++ Library by  doxygen 1.4.5