#include <support/DatumLord.h>
Inheritance diagram for SDatumLord::Datum:
Public Member Functions | |
Datum (const sptr< SDatumLord > &owner, const SValue &key) | |
virtual void | InitAtom () |
Called the first time a strong reference is acquired. All significant object initialization should go here. | |
virtual sptr< IBinder > | Open (uint32_t mode, const sptr< IBinder > &editor, uint32_t newType) |
Access data as stream/storage. | |
virtual void | SetSize (off_t size) |
Number of bytes in datum. | |
virtual void | SetValue (const SValue &value) |
Access datum as an SValue. | |
virtual void | SetValueType (uint32_t type) |
Current type code of this datum. Default is B_RAW_TYPE. | |
virtual off_t | Size () const |
Number of bytes in datum. | |
void | StorageDone () |
virtual SValue | Value () const |
Access datum as an SValue. | |
virtual uint32_t | ValueType () const |
Current type code of this datum. Default is B_RAW_TYPE. | |
virtual | ~Datum () |
|
|
|
|
|
Called the first time a strong reference is acquired. All significant object initialization should go here. You can override it and do any setup you need. Note that you do not need to call the SAtom implementation. (So you can derive from two different SAtom implementations and safely call down to both of their IncStrong() methods.)
Reimplemented from SAtom. |
|
Access data as stream/storage.
Implements IDatum. |
|
Number of bytes in datum.
Implements IDatum. |
|
Access datum as an SValue. You can link to this for notifications when the datum changes. If the datum can not be represented as a value, the value here is "undefined" OR an error value, and it is not pushed when the datum changes. To ensure you always get notified when it changes, you should use the DatumChanged event. Implements IDatum. |
|
Current type code of this datum. Default is B_RAW_TYPE.
Implements IDatum. |
|
Number of bytes in datum.
Implements IDatum. |
|
|
|
Access datum as an SValue. You can link to this for notifications when the datum changes. If the datum can not be represented as a value, the value here is "undefined" OR an error value, and it is not pushed when the datum changes. To ensure you always get notified when it changes, you should use the DatumChanged event. Implements IDatum. |
|
Current type code of this datum. Default is B_RAW_TYPE.
Implements IDatum. |