OOFILE  1.9
Public Member Functions | Protected Attributes | Related Functions | List of all members

Base exception for database operations on the c-tree Plus backend. More...

#include <oofexcep.h>

Inheritance diagram for oofE_CtreeError:
Inheritance graph
[legend]
Collaboration diagram for oofE_CtreeError:
Collaboration graph
[legend]

Public Member Functions

long errorNumber () const
 
virtual void extract (std::ostream &os) const
 
 oofE_CtreeError (dbTable *T, long errNum, const char *action, const char *where)
 
 oofE_CtreeError (dbTable &T, long errNum, const char *action, const char *where)
 
 oofE_CtreeError (const oofE_CtreeError &)
 
bool originalTableStillInScope () const
 
virtual bool receiveMsg (OOFmsgT msg, unsigned long senderDefined)
 The default receiveMsg behaviour is to delete yourself when the broadcaster closes. More...
 
void resumeListening ()
 
virtual void subscribeTo (oofBroadcaster *)
 
void suspendListening ()
 
dbTabletable () const
 
virtual void unsubscribe (oofBroadcaster *from=0)
 
virtual ~oofE_CtreeError ()
 

Protected Attributes

oofBroadcastermListensTo
 
unsigned short mSuspendCount
 
oofBroadcastermSuspendedListensTo
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &, const oofE_Base &)
 

Detailed Description

Base exception for database operations on the c-tree Plus backend.

Definition at line 342 of file oofexcep.h.

Constructor & Destructor Documentation

oofE_CtreeError::oofE_CtreeError ( dbTable T,
long  errNum,
const char *  action,
const char *  where 
)

Definition at line 139 of file oofexcep.cpp.

oofE_CtreeError::oofE_CtreeError ( dbTable T,
long  errNum,
const char *  action,
const char *  where 
)

Definition at line 147 of file oofexcep.cpp.

oofE_CtreeError::oofE_CtreeError ( const oofE_CtreeError rhs)

Definition at line 155 of file oofexcep.cpp.

virtual oofE_CtreeError::~oofE_CtreeError ( )
inlinevirtual

Definition at line 347 of file oofexcep.h.

Member Function Documentation

long oofE_CtreeError::errorNumber ( ) const
inline

Definition at line 599 of file oofexcep.h.

void oofE_CtreeError::extract ( std::ostream &  os) const
virtual
bool oofE_Table::originalTableStillInScope ( ) const
inlineinherited

Definition at line 589 of file oofexcep.h.

bool oofE_Table::receiveMsg ( OOFmsgT  msg,
unsigned long  senderDefined 
)
virtualinherited

The default receiveMsg behaviour is to delete yourself when the broadcaster closes.

In many user subclasses oofSingleListener is a mixin and you have a class owned elsewhere, not self-deleting.

\warning If a subclass is not self-deleting it MUST override receiveMsg 
handling of the msg OOFmsg_BroadcasterClosing to prevent runtime error.

However it is still important to set mListensTo=0 otherwise when you finally get around to deleting your oofSingleListener, it will try to update a deleted oofBroadcaster and cause a crash.

Reimplemented from oofSingleListener.

Definition at line 79 of file oofexcep.cpp.

References oofSingleListener::mListensTo, OOFmsg_BroadcasterClosing, and dbConnect::table().

void oofSingleListener::resumeListening ( )
inherited
void oofSingleListener::subscribeTo ( oofBroadcaster broad)
virtualinherited
void oofSingleListener::suspendListening ( )
inherited
dbTable * oofE_Table::table ( ) const
inlineinherited
void oofSingleListener::unsubscribe ( oofBroadcaster from = 0)
virtualinherited

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  ,
const oofE_Base  
)
related

Member Data Documentation

oofBroadcaster* oofSingleListener::mListensTo
protectedinherited
unsigned short oofSingleListener::mSuspendCount
protectedinherited
oofBroadcaster* oofSingleListener::mSuspendedListensTo
protectedinherited

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