Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Error/warning output


Classes

struct  pqxx::noticer
 Base class for user-definable error/warning message processor. More...
struct  pqxx::nonnoticer
 No-op message noticer; produces no output. More...

Functions

PGSTD::auto_ptr< noticer > pqxx::connection_base::set_noticer (PGSTD::auto_ptr< noticer > N) throw ()
 Set handler for postgresql errors or warning messages.
noticer * pqxx::connection_base::get_noticer () const throw ()
void pqxx::connection_base::process_notice (const char[]) throw ()
 Invoke notice processor function. The message should end in newline.
void pqxx::connection_base::process_notice (const PGSTD::string &) throw ()
 Invoke notice processor function. Newline at end is recommended.

Function Documentation

noticer* pqxx::connection_base::get_noticer  )  const throw () [inherited]
 

void pqxx::connection_base::process_notice const PGSTD::string &   )  throw () [inherited]
 

Invoke notice processor function. Newline at end is recommended.

void pqxx::connection_base::process_notice const   char[]  )  throw () [inherited]
 

Invoke notice processor function. The message should end in newline.

PGSTD::auto_ptr<noticer> pqxx::connection_base::set_noticer PGSTD::auto_ptr< noticer N  )  throw () [inherited]
 

Set handler for postgresql errors or warning messages.

The use of auto_ptr implies ownership, so unless the returned value is copied to another auto_ptr, it will be deleted directly after the call. This may be important when running under Windows, where a DLL cannot free memory allocated by the main program. The auto_ptr will delete the object from your code context, rather than from inside the library.

If a noticer exists when the connection_base is destructed, it will also be deleted.

Parameters:
N New message handler; must not be null or equal to the old one
Returns:
Previous handler


Generated on Mon Oct 3 20:29:02 2005 for libpqxx by  doxygen 1.4.2