casa
$Rev:20696$
|
Helper class to notify class Record about changes. More...
#include <RecordInterface.h>
Public Types | |
enum | NoticeType { DETACH, ACQUIRE, REMOVE } |
Define the possible change types. More... | |
Public Member Functions | |
RecordNotice (NoticeType changeType, uInt fieldNumber) | |
Construct a notice for the given type and field number. | |
virtual uInt | type () const |
Returns the change type. | |
virtual int | operator== (const Notice &that) const |
Always returns False. | |
NoticeType | changeType () const |
Return the change type. | |
Int | fieldNumber () const |
Return the field number. | |
Private Attributes | |
NoticeType | changeType_p |
uInt | fieldNumber_p |
Helper class to notify class Record about changes.
Internal
This class is of essentially no interest. The Notification system which is used to invalidate RecordFieldPtr's to a destructed or changed record requires that a class derived from Notice be available to carry messages. There are 3 messages which are described below.
Definition at line 608 of file RecordInterface.h.
Define the possible change types.
DETACH |
Record has been deleted; detach all RecordFieldPtr's. |
ACQUIRE |
RecordRep has been copied; re-acquire the pointers in all RecordFieldPtr's. |
REMOVE |
A field has been removed; detach that RecordFieldPtr and decrement field numbers in RecordFieldPtr's following it. |
Definition at line 612 of file RecordInterface.h.
casa::RecordNotice::RecordNotice | ( | NoticeType | changeType, |
uInt | fieldNumber | ||
) |
Construct a notice for the given type and field number.
The field number is only used for type REMOVE.
RecordNotice::NoticeType casa::RecordNotice::changeType | ( | ) | const [inline] |
Int casa::RecordNotice::fieldNumber | ( | ) | const [inline] |
Return the field number.
Definition at line 648 of file RecordInterface.h.
References fieldNumber_p.
virtual int casa::RecordNotice::operator== | ( | const Notice & | that | ) | const [virtual] |
Always returns False.
Implements casa::Notice.
virtual uInt casa::RecordNotice::type | ( | ) | const [virtual] |
Returns the change type.
Implements casa::Notice.
NoticeType casa::RecordNotice::changeType_p [private] |
Definition at line 639 of file RecordInterface.h.
Referenced by changeType().
uInt casa::RecordNotice::fieldNumber_p [private] |
Definition at line 640 of file RecordInterface.h.
Referenced by fieldNumber().