00001 #ifndef CDBBDBSHARED_CONDITION_P_HH
00002 #define CDBBDBSHARED_CONDITION_P_HH
00003
00004
00005
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
00017
00018
00019 class CdbBdbSClusterP;
00020 #pragma ooclassref CdbBdbSClusterP "CdbBdbShared/CdbBdbSClusterP_ref.hh"
00021
00022
00023
00024
00025 class CdbBdbSConditionP : public CdbBdbSCollectionElementP {
00026
00027 private:
00028
00029
00030
00031
00032
00033 CdbBdbSConditionP( );
00034
00035 public:
00036
00037
00038
00039
00040 CdbBdbSConditionP( const char* theName,
00041 d_UShort theId,
00042 const char* theDescription,
00043 const BdbTime& theCreationTime,
00044 const BdbRef(CdbBdbSClusterP)& theClusterRef,
00045 bool isPartitionable
00046 );
00047
00048
00049
00050
00051 virtual ~CdbBdbSConditionP( );
00052
00053
00054
00055 ooString(32) description ( ) const;
00056 BdbTime created ( ) const;
00057 bool isPartitionable( ) const;
00058
00059
00060
00061
00062 BdbRef(CdbBdbSClusterP) cluster( ) const;
00063
00064
00065
00066
00067 void dump( std::ostream& o ) const;
00068
00069 private:
00070
00071
00072
00073 ooString(32) _description;
00074 BdbTime _created;
00075 d_Boolean _isPartitionable;
00076
00077
00078
00079 BdbRef(CdbBdbSClusterP) _cluster <-> _conditions[];
00080 };
00081
00082 #endif