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

Exception from the OOF_ramBackend database backend. More...

#include <oofexcep.h>

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

Public Member Functions

const oofStringerrorString () const
 
virtual void extract (std::ostream &os) const
 
 oofE_RamError (dbTable *T, std::ostream &os)
 
 oofE_RamError (dbTable &T, std::ostream &os)
 
 oofE_RamError (dbTable *T, const char *str)
 
 oofE_RamError (dbTable &T, const char *str)
 
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)
 

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 from the OOF_ramBackend database backend.

Definition at line 462 of file oofexcep.h.

Constructor & Destructor Documentation

oofE_RamError::oofE_RamError ( dbTable T,
std::ostream &  os 
)
oofE_RamError::oofE_RamError ( dbTable T,
std::ostream &  os 
)
oofE_RamError::oofE_RamError ( dbTable T,
const char *  str 
)

Definition at line 551 of file oofexcep.cpp.

oofE_RamError::oofE_RamError ( dbTable T,
const char *  str 
)

Definition at line 557 of file oofexcep.cpp.

Member Function Documentation

const oofString & oofE_RamError::errorString ( ) const
inline

Definition at line 619 of file oofexcep.h.

Referenced by oofE_RampError::extract().

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

Implements oofE_Base.

Reimplemented in oofE_RampError.

Definition at line 564 of file oofexcep.cpp.

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: