BGenericDatum Class Reference
[Data Model]

#include <storage/GenericDatum.h>

Inheritance diagram for BGenericDatum:

BnDatum IDatum BBinder IInterface IBinder SAtom SAtom BStreamDatum SDatumLord::Datum BValueDatum SDatumGeneratorInt::IndexedDatum List of all members.

Detailed Description

Generic base class for implementations of IDatum.

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 ()


Constructor & Destructor Documentation

BGenericDatum  ) 
 

BGenericDatum const SContext context  ) 
 

~BGenericDatum  )  [protected, virtual]
 


Member Function Documentation

status_t CopyFrom const sptr< IDatum > &  src,
uint32_t  flags = 0
[virtual]
 

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.

status_t CopyTo const sptr< IDatum > &  dest,
uint32_t  flags = 0
[virtual]
 

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.


The documentation for this class was generated from the following files: