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

Exception where we get a c-tree error number and know the record address. More...

#include <oofexcep.h>

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

Public Member Functions

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

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 and know the record address.

Definition at line 380 of file oofexcep.h.

Constructor & Destructor Documentation

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

Definition at line 202 of file oofexcep.cpp.

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

Definition at line 209 of file oofexcep.cpp.

virtual oofE_CtreeISAMErrorAtOffset::~oofE_CtreeISAMErrorAtOffset ( )
inlinevirtual

Definition at line 386 of file oofexcep.h.

Member Function Documentation

long oofE_CtreeError::errorNumber ( ) const
inlineinherited

Definition at line 599 of file oofexcep.h.

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

Reimplemented from oofE_CtreeISAMError.

Definition at line 217 of file oofexcep.cpp.

References oofE_CtreeISAMError::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: