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

Exception where we get a c-tree error number for an operation on a variable-length BLOB. More...

#include <oofexcep.h>

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

Public Member Functions

long errorNumber () const
 
virtual void extract (std::ostream &os) const
 
 oofE_CtreeBlobError (dbTable *T, fieldNumT fldNum, long errNum, const char *action, const char *where)
 
 oofE_CtreeBlobError (dbTable &T, fieldNumT fldNum, long errNum, const char *action, const char *where)
 
 oofE_CtreeBlobError (dbTable *T, fieldNumT fldNum, long errNum, long blobPos, long blobLen, const char *action, const char *where)
 
 oofE_CtreeBlobError (dbTable &T, fieldNumT fldNum, long errNum, long blobPos, long blobLen, 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_CtreeBlobError ()
 

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 for an operation on a variable-length BLOB.

See also
dbBLOB

Definition at line 417 of file oofexcep.h.

Constructor & Destructor Documentation

oofE_CtreeBlobError::oofE_CtreeBlobError ( dbTable T,
fieldNumT  fldNum,
long  errNum,
const char *  action,
const char *  where 
)

Definition at line 250 of file oofexcep.cpp.

oofE_CtreeBlobError::oofE_CtreeBlobError ( dbTable T,
fieldNumT  fldNum,
long  errNum,
const char *  action,
const char *  where 
)

Definition at line 259 of file oofexcep.cpp.

oofE_CtreeBlobError::oofE_CtreeBlobError ( dbTable T,
fieldNumT  fldNum,
long  errNum,
long  blobPos,
long  blobLen,
const char *  action,
const char *  where 
)

Definition at line 268 of file oofexcep.cpp.

oofE_CtreeBlobError::oofE_CtreeBlobError ( dbTable T,
fieldNumT  fldNum,
long  errNum,
long  blobPos,
long  blobLen,
const char *  action,
const char *  where 
)

Definition at line 278 of file oofexcep.cpp.

virtual oofE_CtreeBlobError::~oofE_CtreeBlobError ( )
inlinevirtual

Definition at line 427 of file oofexcep.h.

Member Function Documentation

long oofE_CtreeError::errorNumber ( ) const
inlineinherited

Definition at line 599 of file oofexcep.h.

void oofE_CtreeBlobError::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: