#include <storage/GenericDatum.h>
Inheritance diagram for BGenericDatum:
This class takes care of providing a generic implementation of the CopyTo() and CopyFrom() methods. You should always derive from this class instead of directly from BnDatum.
Implementations will usually derive from an even more specialized class, typically BStreamDatum or one of its subclasses, instead of directly from BGenericDatum.
Public Member Functions | |
BGenericDatum (const SContext &context) | |
BGenericDatum () | |
virtual status_t | CopyFrom (const sptr< IDatum > &src, uint32_t flags=0) |
Read src in to this datum. | |
virtual status_t | CopyTo (const sptr< IDatum > &dest, uint32_t flags=0) |
Write this datum in to dest. | |
Protected Member Functions | |
virtual | ~BGenericDatum () |
|
|
|
|
|
|
|
Read src in to this datum. Upon a succeessful return, this datum will hold the same data as src. The implementation may accomplish this by calling CopyTo() on src, unless the NO_COPY_REDIRECTION flag is set. Implements IDatum. |
|
Write this datum in to dest. Upon a succeessful return, dest will contain the same data as the source datum. The implementation may accomplish this by calling CopyFrom() on dest, unless the NO_COPY_REDIRECTION flag is set. Implements IDatum. |