modules::ErrorInterface Class Reference

An interface with error reporting capabilities. More...

#include <interface.h>

Inheritance diagram for modules::ErrorInterface:

modules::Interface databases::DBRemove databases::XMLExport databases::XMLImport filecomp::Compressor mail::Transport List of all members.

Public Member Functions

 ErrorInterface ()
 Constructor.
 ErrorInterface (ErrorInterface const &ei)
 Copy constructor (does not copy the error message).
virtual ErrorInterfaceoperator= (ErrorInterface const &right)
 Assignment operator (does not copy the error message).
char const * error () const
 Returns the last error message.

Static Public Attributes

static PSIID const IID = 0x42e694d6
 The interface unique identifier.
static size_t const error_len = 1024
 The maximum length of error messages.

Protected Member Functions

void errorf (char const *format,...) FORMAT(printf
 Sets the last error message, printf-like.

Protected Attributes

char m_error [error_len]
 The last error that occured.

Detailed Description

This interface class may be used to as a base class for interface that want to report errors. Error messages are limited to 1024 characters.


The documentation for this class was generated from the following file:
Generated on Sun May 20 21:32:21 2007 for Epona API by  doxygen 1.4.6