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

CdbRooRoBootRecordR.rdl

Go to the documentation of this file.
00001 #ifndef CDBROOREADONLY_BOOT_FILE_RECORD_RDL
00002 #define CDBROOREADONLY_BOOT_FILE_RECORD_RDL
00003 
00004 // File and Version Information:
00005 //      $Id: CdbRooRoBootRecordR.rdl,v 1.1 2005/11/11 01:41:26 gapon Exp $
00006 
00007 #include <Rtypes.h>
00008 
00009 #include <string>
00010 #include <map>
00011 
00012 /// A persistent "origin"
00013 /**
00014   */
00015 class CdbRooRoBootRecordR {
00016 
00017 public:
00018 
00019   /// A name of the persistent object in the boot file
00020   /**
00021     * The name is defined here in order to avoid multiple (and unsafe)
00022     * replications of the same string in a client code.
00023     */
00024     static const char* PersistentObjectName( ) { return "BootRecord"; }
00025 
00026 public:
00027 
00028     CdbRooRoBootRecordR( ) :
00029         _localOriginName(""),
00030         _localOriginId  (0xFFFF),
00031         _defaultViewName("")
00032     { }
00033     
00034     CdbRooRoBootRecordR( const char*                              theLocalOriginName,
00035                          const UShort_t&                          theLocalOriginId,
00036                          const char*                              theDefaultViewName,
00037                          const std::map<std::string,std::string>& theDatabase2LocationMap,
00038                          const std::map<std::string,std::string>& theObject2DatabaseMap
00039                        ) :
00040         _localOriginName     (theLocalOriginName),
00041         _localOriginId       (theLocalOriginId),
00042         _defaultViewName     (theDefaultViewName),
00043         _database2LocationMap(theDatabase2LocationMap),
00044         _object2DatabaseMap  (theObject2DatabaseMap)
00045     { }
00046 
00047     virtual ~CdbRooRoBootRecordR( ) { }
00048     
00049     const std::string& localOriginName( ) const { return _localOriginName; }
00050     UShort_t           localOriginId  ( ) const { return _localOriginId; }
00051     const std::string& defaultViewName( ) const { return _defaultViewName; }
00052     
00053     const std::map<std::string,std::string>& database2LocationMap( ) const { return _database2LocationMap; }
00054     const std::map<std::string,std::string>& object2DatabaseMap  ( ) const { return _object2DatabaseMap; }
00055 
00056 private:
00057 
00058     std::string _localOriginName;
00059     UShort_t    _localOriginId;
00060     std::string _defaultViewName;
00061     
00062     std::map<std::string,std::string> _database2LocationMap;
00063     std::map<std::string,std::string> _object2DatabaseMap;
00064 
00065     ClassDef(CdbRooRoBootRecordR,1);
00066 };
00067 
00068 #endif /* CDBROOREADONLY_BOOT_FILE_RECORD_RDL */

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