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

CdbRooTestClassR.rdl

Go to the documentation of this file.
00001 #ifndef CDBROOTESTS_TEST_CLASS_R_RDL
00002 #define CDBROOTESTS_TEST_CLASS_R_RDL
00003 
00004 // File and Version Information:
00005 //      $Id: CdbRooTestClassR.rdl,v 1.2 2005/01/14 13:54:07 gapon Exp $
00006 
00007 #include "CdbRoo/CdbRooObjectR.hh"
00008 
00009 #include <string>
00010 
00011 /// A transient class for tests
00012 
00013 class CdbRooTestClass {
00014 
00015 public:
00016 
00017     CdbRooTestClass( const std::string& theDescription = "" ) :
00018         _description(theDescription)
00019     { }
00020 
00021     virtual ~CdbRooTestClass( ) { }
00022 
00023     std::string description( ) const { return _description; }
00024 
00025 private:
00026 
00027     std::string _description;
00028 };
00029 
00030 /// A persistent class for tests
00031 /**
00032   */
00033 class CdbRooTestClassR : public CdbRooObjectR {
00034 
00035 public:
00036 
00037     CdbRooTestClassR( const std::string& theDescription = "" ) :
00038         CdbRooObjectR( ),
00039         _description(theDescription)
00040     { }
00041 
00042     virtual ~CdbRooTestClassR( ) { }
00043 
00044     std::string description( ) const { return _description; }
00045 
00046     CdbRooTestClass* transient( ) const { return new CdbRooTestClass( _description ); }
00047 
00048 private:
00049 
00050     std::string   _description;
00051 
00052     ClassDef(CdbRooTestClassR,1);
00053 };
00054 
00055 #endif /* CDBROOTESTS_TEST_CLASS_R_RDL */

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