Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbSCollectionElementP.ddl

Go to the documentation of this file.
00001 #ifndef CDBBDBSHARED_COLLECTION_ELEMENT_P_HH
00002 #define CDBBDBSHARED_COLLECTION_ELEMENT_P_HH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbBdbSCollectionElementP.ddl,v 1.4 2002/09/23 22:41:06 gapon Exp $
00006 
00007 #include "BdbUtil/Bdb.hh"
00008 
00009 #include "CdbBase/CdbCommon.hh"
00010 
00011 /// Collection element class
00012 /**
00013   * This persistent class represent an entry in a persistent "collection".
00014   * Each entry is identified by mean of its name and its identifier.
00015   */
00016 class CdbBdbSCollectionElementP : public BdbPersObj {
00017 
00018 private:
00019 
00020   /// Default constructor (IS DISABLED)
00021 
00022     CdbBdbSCollectionElementP( );
00023 
00024 public:
00025 
00026   /// Normal constructor
00027   /**
00028     */
00029     CdbBdbSCollectionElementP( const char*     theName,     /**< the name of the entry */
00030                                const d_UShort& theId        /**< the identifier of the entry */
00031                              ) :
00032         _name(theName),
00033         _id(theId)
00034     { }
00035 
00036   /// Destructor
00037   /**
00038     */
00039     virtual ~CdbBdbSCollectionElementP( )
00040     { }
00041 
00042   // Accessors
00043 
00044     ooString(32) name( ) const { return _name; }
00045     d_UShort     id  ( ) const { return _id;   }
00046 
00047 private:
00048 
00049   // Data members
00050 
00051     ooString(32) _name;
00052     d_UShort     _id;
00053 };
00054 
00055 #endif /* CDBBDBSHARED_COLLECTION_ELEMENT_P_HH */

Generated on Mon Dec 5 18:22:01 2005 for CDB by doxygen1.3-rc3