![]() |
|
|
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 /BdbScribes/BdbPersistentPushPull.cc
Go to the documentation of this file.00001 #if !defined(BDBPERSISTENTPUSHPULL_CC) 00002 #define BDBPERSISTENTPUSHPULL_CC 00003 //-------------------------------------------------------------------------- 00004 // File and Version Information: 00005 // $Id: BdbPersistentPushPull.cc,v 1.6 2002/03/31 23:11:32 ryd Exp $ 00006 // 00007 // Description: 00008 // Class BdbPersistentPushPull 00009 // 00010 // Environment: 00011 // Software developed for the BaBar Detector at the SLAC B-Factory. 00012 // 00013 // Author List: 00014 // Simon Patton Originator 00015 // 00016 // Copyright Information: 00017 // Copyright (C) 1998 LBNL 00018 // 00019 //------------------------------------------------------------------------ 00020 00021 //---------------- 00022 // BaBar Header -- 00023 //---------------- 00024 #include "BaBar/BaBar.hh" 00025 00026 //----------------------- 00027 // This Class's Header -- 00028 //----------------------- 00029 #include "BdbScribes/BdbPersistentPushPull.hh" 00030 00031 //------------- 00032 // C Headers -- 00033 //------------- 00034 #include <stdlib.h> 00035 extern "C" { 00036 } 00037 00038 //--------------- 00039 // C++ Headers -- 00040 //--------------- 00041 #include <string> 00042 using std::string; 00043 00044 //------------------------------- 00045 // Collaborating Class Headers -- 00046 //------------------------------- 00047 #include "BdbScribes/BdbPersPushPullUtility.hh" 00048 #include "BbrStdUtils/String.hh" 00049 //------------------------------------ 00050 // Collaborating Class Declarations -- 00051 //------------------------------------ 00052 class BdbEventT ; 00053 #include "BdbTrees/BdbTreeHdr.hh" 00054 00055 //----------------------------------------------------------------------- 00056 // Local Macros, Typedefs, Structures, Unions and Forward Declarations -- 00057 //----------------------------------------------------------------------- 00058 00059 // ----------------------------------------------- 00060 // -- Static Data & Function Member Definitions -- 00061 // ----------------------------------------------- 00062 00063 // --------------------------------- 00064 // -- Member Function Definitions -- 00065 // --------------------------------- 00066 00067 //---------------- 00068 // Constructors -- 00069 //---------------- 00070 00071 template< class P , class I > 00072 BdbPersistentPushPull< P , I >::BdbPersistentPushPull( const string& aKey , 00073 const string& aTree ) 00074 : _headerKey( aKey ) , 00075 _headerName( aTree ) 00076 { 00077 babar::String::transformToLower(_headerName); 00078 } 00079 00080 // BdbPersistentPushPull< P , I >::BdbPersistentPushPull() 00081 // { 00082 // } 00083 00084 // BdbPersistentPushPull< P , I >::BdbPersistentPushPull( const BdbPersistentPushPull& aRhs ) 00085 // { 00086 // } 00087 00088 //-------------- 00089 // Destructor -- 00090 //-------------- 00091 00092 template< class P , class I > 00093 BdbPersistentPushPull< P , I >::~BdbPersistentPushPull() 00094 { 00095 } 00096 00097 //------------- 00098 // Operators -- 00099 //------------- 00100 00101 // const BdbPersistentPushPull& BdbPersistentPushPull< P , I >::operator=( const BdbPersistentPushPull& aRhs ) 00102 // { 00103 // } 00104 00105 //------------- 00106 // Selectors -- 00107 //------------- 00108 00109 template< class P , class I > 00110 BdbTreeHdrT 00111 BdbPersistentPushPull< P , I >::getHeader( BdbEventT& aEvent , 00112 const BdbAbsPlacementManager& aPlacementManager ) const 00113 { 00114 return( BdbPersPushPullUtility::getHeader( aEvent , 00115 _headerName.c_str() , 00116 aPlacementManager ) ) ; 00117 } 00118 00119 template< class P , class I > 00120 BdbTreeHdrT 00121 BdbPersistentPushPull< P , I >::findHeader( const BdbEventT& aEvent ) const 00122 { 00123 return( BdbPersPushPullUtility::findHeader( aEvent , 00124 _headerName.c_str() ) ) ; 00125 } 00126 00127 template< class P , class I > 00128 const char* 00129 BdbPersistentPushPull< P , I >::headerKey() const 00130 { 00131 return( _headerKey.c_str() ) ; 00132 } 00133 00134 //------------- 00135 // Modifiers -- 00136 //------------- 00137 00138 #endif // BDBPERSISTENTPUSHPULL_CC
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002