![]() |
![]() |
00001 #include "CondCore/ORA/interface/Configuration.h" 00002 #include "CondCore/ORA/interface/IBlobStreamingService.h" 00003 #include "CondCore/ORA/interface/IReferenceHandler.h" 00004 00005 std::string ora::Configuration::automaticDatabaseCreation(){ 00006 static std::string s_automaticDatabaseCreation("ORA_AUTOMATIC_DATABASE_CREATION"); 00007 return s_automaticDatabaseCreation; 00008 } 00009 00010 std::string ora::Configuration::automaticContainerCreation(){ 00011 static std::string s_automaticContainerCreation("ORA_AUTOMATIC_CONTAINER_CREATION"); 00012 return s_automaticContainerCreation; 00013 } 00014 00015 std::string ora::Configuration::automaticSchemaEvolution(){ 00016 static std::string s_automaticSchemaEvolution("ORA_AUTOMATIC_SCHEMA_EVOLUTION"); 00017 return s_automaticSchemaEvolution; 00018 } 00019 00020 ora::Configuration::Configuration(): 00021 m_blobStreamingService(), 00022 m_referenceHandler(), 00023 m_properties(){ 00024 00025 //coral::MessageStream::setMsgVerbosity( coral::Info ); 00026 00027 } 00028 00029 ora::Configuration::~Configuration(){ 00030 } 00031 00032 void ora::Configuration::setBlobStreamingService( IBlobStreamingService* service ){ 00033 m_blobStreamingService.reset( service ); 00034 } 00035 00036 ora::IBlobStreamingService* ora::Configuration::blobStreamingService(){ 00037 return m_blobStreamingService.get(); 00038 } 00039 00040 void ora::Configuration::setReferenceHandler( IReferenceHandler* handler ){ 00041 m_referenceHandler.reset( handler ); 00042 } 00043 00044 ora::IReferenceHandler* ora::Configuration::referenceHandler(){ 00045 return m_referenceHandler.get(); 00046 } 00047 00048 ora::Properties& ora::Configuration::properties(){ 00049 return m_properties; 00050 } 00051 00052 void ora::Configuration::setMessageVerbosity( coral::MsgLevel level ){ 00053 coral::MessageStream::setMsgVerbosity( level ); 00054 } 00055 00056