GenericDatum.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005 Palmsource, Inc.
00003  * 
00004  * This software is licensed as described in the file LICENSE, which
00005  * you should have received as part of this distribution. The terms
00006  * are also available at http://www.openbinder.org/license.html.
00007  * 
00008  * This software consists of voluntary contributions made by many
00009  * individuals. For the exact contribution history, see the revision
00010  * history and logs, available at http://www.openbinder.org
00011  */
00012 
00013 #ifndef _STORAGE_GENERICDATUM_H
00014 #define _STORAGE_GENERICDATUM_H
00015 
00021 #include <support/IDatum.h>
00022 
00023 #if _SUPPORTS_NAMESPACE
00024 namespace palmos {
00025 namespace storage {
00026 using namespace support;
00027 #endif
00028 
00033 // ==========================================================================
00034 // ==========================================================================
00035 
00037 
00047 class BGenericDatum : public BnDatum
00048 {
00049 public:
00050                                     BGenericDatum();
00051                                     BGenericDatum(const SContext& context);
00052 
00053     virtual status_t                CopyTo(const sptr<IDatum>& dest, uint32_t flags = 0);
00054     virtual status_t                CopyFrom(const sptr<IDatum>& src, uint32_t flags = 0);
00055 
00056 protected:
00057     virtual                         ~BGenericDatum();
00058 
00059 private:
00060                                     BGenericDatum(const BGenericDatum&);
00061             BGenericDatum&          operator=(const BGenericDatum&);
00062 };
00063 
00064 // ==========================================================================
00065 // ==========================================================================
00066 
00069 #if _SUPPORTS_NAMESPACE
00070 } } // namespace palmos::storage
00071 #endif
00072 
00073 #endif // _STORAGE_GENERICDATUM_H