Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofE_Table Class Reference
[OOFILE exception hierarchy to provide structuredOOFILE Database package]

#include <oofexcep.h>

Inheritance diagram for oofE_Table:

Inheritance graph
[legend]
Collaboration diagram for oofE_Table:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base exception for database table operations.


Public Member Functions

 oofE_Table (dbTable *)
 oofE_Table (dbTable &)
 oofE_Table (const oofE_Table &)
virtual ~oofE_Table ()
virtual bool receiveMsg (OOFmsgT msg, unsigned long senderDefined)
 The default receiveMsg behaviour is to delete yourself when the broadcaster closes.

dbTabletable () const
bool originalTableStillInScope () const
virtual void extract (std::ostream &) const=0
virtual void subscribeTo (oofBroadcaster *)
virtual void unsubscribe (oofBroadcaster *from=0)
void suspendListening ()
void resumeListening ()

Protected Attributes

oofBroadcastermListensTo
oofBroadcastermSuspendedListensTo
unsigned short mSuspendCount


Constructor & Destructor Documentation

oofE_Table::oofE_Table dbTable  ) 
 

oofE_Table::oofE_Table dbTable  ) 
 

oofE_Table::oofE_Table const oofE_Table  ) 
 

oofE_Table::~oofE_Table  )  [virtual]
 


Member Function Documentation

virtual void oofE_Base::extract std::ostream &   )  const [pure virtual, inherited]
 

Implemented in oofE_CtreeConnectionError, oofE_dBaseConnectionError, oofE_RamConnectionError, oofE_RampConnectionError, oofE_DuplicateRecord, oofE_RecordLocked, oofE_FieldError, oofE_RangeError, oofE_GUIError, oofE_MFCGUIError, oofE_Selection, oofE_General, oofE_CtreeError, oofE_CtreeISAMError, oofE_CtreeISAMErrorAtOffset, oofE_CtreeKeyError, oofE_CtreeBlobError, oofE_TableError, oofE_RamError, oofE_RampError, oofE_MacOSErr, oofE_dbUser, oofE_oofSchemaParser, oofE_oofCTRes, oofE_File, oofE_InvalidDir, oofE_AliasNotResolved, and oofE_FServConnectionError.

bool oofE_Table::originalTableStillInScope  )  const [inline]
 

bool oofE_Table::receiveMsg OOFmsgT  msg,
unsigned long  senderDefined
[virtual]
 

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.

void oofSingleListener::resumeListening  )  [inherited]
 

void oofSingleListener::subscribeTo oofBroadcaster  )  [virtual, inherited]
 

Reimplemented from oofReceiver.

void oofSingleListener::suspendListening  )  [inherited]
 

dbTable * oofE_Table::table  )  const [inline]
 

void oofSingleListener::unsubscribe oofBroadcaster from = 0  )  [virtual, inherited]
 

Reimplemented from oofReceiver.


Member Data Documentation

oofBroadcaster* oofSingleListener::mListensTo [protected, inherited]
 

unsigned short oofSingleListener::mSuspendCount [protected, inherited]
 

oofBroadcaster* oofSingleListener::mSuspendedListensTo [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 00:56:20 2004 for OOFILE by doxygen 1.3.5