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

Exception where we get a c-tree error number back for diagnosis. More...

#include <oofexcep.h>

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

Public Member Functions

long errorNumber () const
 
virtual void extract (std::ostream &os) const
 
 oofE_CtreeISAMError (dbTable *T, long datno, long errNum, const char *action, const char *where)
 
 oofE_CtreeISAMError (dbTable &T, long datno, long errNum, const char *action, const char *where)
 
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_CtreeISAMError ()
 

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

Exception where we get a c-tree error number back for diagnosis.

Definition at line 363 of file oofexcep.h.

Constructor & Destructor Documentation

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

Definition at line 177 of file oofexcep.cpp.

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

Definition at line 184 of file oofexcep.cpp.

virtual oofE_CtreeISAMError::~oofE_CtreeISAMError ( )
inlinevirtual

Definition at line 367 of file oofexcep.h.

Member Function Documentation

long oofE_CtreeError::errorNumber ( ) const
inlineinherited

Definition at line 599 of file oofexcep.h.

void oofE_CtreeISAMError::extract ( std::ostream &  os) const
virtual

Reimplemented from oofE_CtreeError.

Reimplemented in oofE_CtreeISAMErrorAtOffset.

Definition at line 192 of file oofexcep.cpp.

References oofE_CtreeError::extract().

Referenced by oofE_CtreeISAMErrorAtOffset::extract().

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: