CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
ora::Configuration Class Reference

#include <Configuration.h>

Public Member Functions

IBlobStreamingServiceblobStreamingService ()
 
 Configuration ()
 
Propertiesproperties ()
 
IReferenceHandlerreferenceHandler ()
 
void setBlobStreamingService (IBlobStreamingService *service)
 
void setMessageVerbosity (coral::MsgLevel level)
 
void setReferenceHandler (IReferenceHandler *handler)
 
virtual ~Configuration ()
 

Static Public Member Functions

static std::string automaticContainerCreation ()
 
static std::string automaticDatabaseCreation ()
 
static std::string automaticSchemaEvolution ()
 

Private Attributes

std::auto_ptr
< IBlobStreamingService
m_blobStreamingService
 
Properties m_properties
 
std::auto_ptr< IReferenceHandlerm_referenceHandler
 

Detailed Description

Definition at line 15 of file Configuration.h.

Constructor & Destructor Documentation

ora::Configuration::Configuration ( )

Definition at line 37 of file Configuration.cc.

References CORAL_MSG_LEVEL, coralMessageLevel(), and testEve_cfg::level.

37  :
40  m_properties(){
41 
42  const char* envVar = ::getenv( CORAL_MSG_LEVEL );
43  if( envVar ){
44  coral::MsgLevel level = coralMessageLevel( envVar );
45  if( level != coral::Nil ) coral::MessageStream::setMsgVerbosity( coralMessageLevel( envVar ) );
46  }
47 }
coral::MsgLevel coralMessageLevel(const char *envVar)
Definition: Configuration.cc:9
std::auto_ptr< IReferenceHandler > m_referenceHandler
Definition: Configuration.h:44
std::auto_ptr< IBlobStreamingService > m_blobStreamingService
Definition: Configuration.h:42
static const char * CORAL_MSG_LEVEL
Definition: Configuration.cc:8
Properties m_properties
Definition: Configuration.h:46
tuple level
Definition: testEve_cfg.py:34
ora::Configuration::~Configuration ( )
virtual

Definition at line 49 of file Configuration.cc.

49  {
50 }

Member Function Documentation

std::string ora::Configuration::automaticContainerCreation ( )
static

Definition at line 27 of file Configuration.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::getContainerFromSession(), ora::ContainerSchema::mappingForDependentClass(), and cond::SessionImpl::open().

27  {
28  static std::string s_automaticContainerCreation("ORA_AUTOMATIC_CONTAINER_CREATION");
29  return s_automaticContainerCreation;
30 }
std::string ora::Configuration::automaticDatabaseCreation ( )
static

Definition at line 22 of file Configuration.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::getContainerFromSession(), ora::DatabaseUtilitySession::importContainerSchema(), ora::ContainerSchema::mappingForDependentClass(), and ora::Database::open().

22  {
23  static std::string s_automaticDatabaseCreation("ORA_AUTOMATIC_DATABASE_CREATION");
24  return s_automaticDatabaseCreation;
25 }
std::string ora::Configuration::automaticSchemaEvolution ( )
static

Definition at line 32 of file Configuration.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::ContainerSchema::mapping(), and ora::ContainerSchema::mappingForDependentClass().

32  {
33  static std::string s_automaticSchemaEvolution("ORA_AUTOMATIC_SCHEMA_EVOLUTION");
34  return s_automaticSchemaEvolution;
35 }
ora::IBlobStreamingService * ora::Configuration::blobStreamingService ( )

Definition at line 56 of file Configuration.cc.

56  {
57  return m_blobStreamingService.get();
58 }
std::auto_ptr< IBlobStreamingService > m_blobStreamingService
Definition: Configuration.h:42
ora::Properties & ora::Configuration::properties ( )

Definition at line 68 of file Configuration.cc.

Referenced by ora::getContainerFromSession(), and Vispa.Share.BasicDataAccessor.BasicDataAccessor::property().

68  {
69  return m_properties;
70 }
Properties m_properties
Definition: Configuration.h:46
ora::IReferenceHandler * ora::Configuration::referenceHandler ( )

Definition at line 64 of file Configuration.cc.

64  {
65  return m_referenceHandler.get();
66 }
std::auto_ptr< IReferenceHandler > m_referenceHandler
Definition: Configuration.h:44
void ora::Configuration::setBlobStreamingService ( IBlobStreamingService service)

Definition at line 52 of file Configuration.cc.

52  {
53  m_blobStreamingService.reset( service );
54 }
std::auto_ptr< IBlobStreamingService > m_blobStreamingService
Definition: Configuration.h:42
void ora::Configuration::setMessageVerbosity ( coral::MsgLevel  level)

Definition at line 72 of file Configuration.cc.

72  {
73  coral::MessageStream::setMsgVerbosity( level );
74 }
tuple level
Definition: testEve_cfg.py:34
void ora::Configuration::setReferenceHandler ( IReferenceHandler handler)

Definition at line 60 of file Configuration.cc.

60  {
61  m_referenceHandler.reset( handler );
62 }
std::auto_ptr< IReferenceHandler > m_referenceHandler
Definition: Configuration.h:44

Member Data Documentation

std::auto_ptr<IBlobStreamingService> ora::Configuration::m_blobStreamingService
private

Definition at line 42 of file Configuration.h.

Properties ora::Configuration::m_properties
private

Definition at line 46 of file Configuration.h.

std::auto_ptr<IReferenceHandler> ora::Configuration::m_referenceHandler
private

Definition at line 44 of file Configuration.h.