![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /CdbBdbShared/CdbBdbSConditionP.cc
Go to the documentation of this file.00001 /// The implementation for the CdbBdbSConditionP class 00002 /** 00003 * @see CdbBdbSConditionP 00004 */ 00005 00006 #include "BaBar/BaBar.hh" 00007 00008 #include "CdbBdbShared/CdbBdbSConditionP.hh" 00009 #include "CdbBdbShared/CdbBdbSClusterP.hh" 00010 00011 #include <assert.h> 00012 00013 CdbBdbSConditionP::CdbBdbSConditionP( const char* theName, 00014 d_UShort theId, 00015 const char* theDescription, 00016 const BdbTime& theCreationTime, 00017 const BdbRef(CdbBdbSClusterP)& theClusterRef, 00018 bool isPartitionable ) : 00019 CdbBdbSCollectionElementP( theName, 00020 theId ), 00021 _description(theDescription), 00022 _created(theCreationTime), 00023 _isPartitionable(isPartitionable) 00024 { 00025 assert( 0 != theDescription ); 00026 assert(( BdbTime::minusInfinity != theCreationTime ) && ( BdbTime::plusInfinity != theCreationTime )); 00027 assert( ! BdbIsNull(theClusterRef)); 00028 00029 set__cluster( theClusterRef ); 00030 } 00031 00032 CdbBdbSConditionP::~CdbBdbSConditionP( ) 00033 { } 00034 00035 ooString(32) 00036 CdbBdbSConditionP::description( ) const 00037 { 00038 return _description; 00039 } 00040 00041 BdbTime 00042 CdbBdbSConditionP::created( ) const 00043 { 00044 return _created; 00045 } 00046 00047 bool 00048 CdbBdbSConditionP::isPartitionable( ) const 00049 { 00050 return _isPartitionable; 00051 } 00052 00053 BdbRef(CdbBdbSClusterP) 00054 CdbBdbSConditionP::cluster( ) const 00055 { 00056 return _cluster( ); 00057 } 00058 00059 void 00060 CdbBdbSConditionP::dump( ostream& o ) const 00061 { 00062 00063 o << " NAME: " << name( ).head( ) << endl 00064 << " ID: " << id( ) << endl 00065 << " DESCRIPTION: " << _description.head( ) << endl 00066 << " CREATED: " << _created << endl 00067 << "MEMBER OF A CLUSTER: " << _cluster( BdbcRead )->id( ) << endl 00068 << " IS PARTITIONABLE: " << ( _isPartitionable ? "Yes" : "No" ) << endl; 00069 } 00070 00071 ///////////////// 00072 // End Of File // 00073 /////////////////
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002