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

CdbBdbSConditionP.ddl

Go to the documentation of this file.
00001 #ifndef CDBBDBSHARED_CONDITION_P_HH
00002 #define CDBBDBSHARED_CONDITION_P_HH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbBdbSConditionP.ddl,v 1.12 2004/08/06 05:54:24 bartoldu Exp $
00006 
00007 #include "BdbUtil/Bdb.hh"
00008 
00009 #include "BdbTime/BdbTime.hh"
00010 
00011 #include "CdbBdbShared/CdbBdbSCollectionElementP.hh"
00012 
00013 #include <iostream>
00014 
00015 //-----------------------------------------------
00016 // Forward Declarations for Persistent Classes --
00017 //-----------------------------------------------
00018 
00019 class CdbBdbSClusterP;
00020 #pragma ooclassref CdbBdbSClusterP "CdbBdbShared/CdbBdbSClusterP_ref.hh"
00021 
00022 /// Persistent condition class
00023 /**
00024   */
00025 class CdbBdbSConditionP : public CdbBdbSCollectionElementP {
00026 
00027 private:
00028 
00029   /// Default constructor (NOT IMPLEMENTED))
00030   /**
00031     * Also see comments about the special constructor defined above.
00032     */
00033     CdbBdbSConditionP( );
00034 
00035 public:
00036 
00037   /// Normal constructor
00038   /**
00039     */
00040     CdbBdbSConditionP( const char*                    theName,          /**< the name of the condition */
00041                        d_UShort                       theId,            /**< the identifier of the condition */
00042                        const char*                    theDescription,   /**< the description of the condition */
00043                        const BdbTime&                 theCreationTime,  /**< the time when the condition is supposed to be created */
00044                        const BdbRef(CdbBdbSClusterP)& theClusterRef,    /**< a data cluster to join */
00045                        bool                           isPartitionable   /**< true if the conditions is split into partitions */
00046                 );
00047 
00048   /// Destructor
00049   /**
00050     */
00051     virtual ~CdbBdbSConditionP( );
00052 
00053   // Accessors
00054 
00055     ooString(32) description    ( ) const;
00056     BdbTime      created        ( ) const;
00057     bool         isPartitionable( ) const;
00058 
00059   /// Get a cluster the condition is member of.
00060   /**
00061     */
00062     BdbRef(CdbBdbSClusterP) cluster( ) const;
00063 
00064   /// Dump the contents of the object
00065   /**
00066     */
00067     void dump( std::ostream& o ) const;
00068 
00069 private:
00070 
00071   // Data members
00072 
00073     ooString(32) _description;
00074     BdbTime      _created;
00075     d_Boolean    _isPartitionable;
00076 
00077   // The data cluster this condition is a member of.
00078 
00079     BdbRef(CdbBdbSClusterP) _cluster <-> _conditions[];
00080 };
00081 
00082 #endif /* CDBBDBSHARED_CONDITION_P_HH */

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