CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

ora::Configuration Class Reference

#include <Configuration.h>

List of all members.

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 16 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.

                               :
  m_blobStreamingService(),
  m_referenceHandler(),
  m_properties(){
  
  const char* envVar = ::getenv( CORAL_MSG_LEVEL );
  if( envVar ){
    coral::MsgLevel level = coralMessageLevel( envVar );
    if( level != coral::Nil ) coral::MessageStream::setMsgVerbosity( coralMessageLevel( envVar ) );
  }
}
ora::Configuration::~Configuration ( ) [virtual]

Definition at line 49 of file Configuration.cc.

                                {
}

Member Function Documentation

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

Definition at line 27 of file Configuration.cc.

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

                                                      {
  static std::string s_automaticContainerCreation("ORA_AUTOMATIC_CONTAINER_CREATION");
  return s_automaticContainerCreation;  
}
std::string ora::Configuration::automaticDatabaseCreation ( ) [static]

Definition at line 22 of file Configuration.cc.

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

                                                     {
  static std::string s_automaticDatabaseCreation("ORA_AUTOMATIC_DATABASE_CREATION");
  return s_automaticDatabaseCreation;  
}
std::string ora::Configuration::automaticSchemaEvolution ( ) [static]

Definition at line 32 of file Configuration.cc.

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

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

Definition at line 56 of file Configuration.cc.

                                                                {
  return m_blobStreamingService.get();
}
ora::Properties & ora::Configuration::properties ( )

Definition at line 68 of file Configuration.cc.

                                           {
  return m_properties;
}
ora::IReferenceHandler * ora::Configuration::referenceHandler ( )

Definition at line 64 of file Configuration.cc.

                                                        {
  return m_referenceHandler.get();
}
void ora::Configuration::setBlobStreamingService ( IBlobStreamingService service)

Definition at line 52 of file Configuration.cc.

                                                                              {
  m_blobStreamingService.reset( service );
}
void ora::Configuration::setMessageVerbosity ( coral::MsgLevel  level)

Definition at line 72 of file Configuration.cc.

                                                               {
  coral::MessageStream::setMsgVerbosity( level );  
}
void ora::Configuration::setReferenceHandler ( IReferenceHandler handler)

Definition at line 60 of file Configuration.cc.

                                                                      {
  m_referenceHandler.reset( handler );
}

Member Data Documentation

Definition at line 43 of file Configuration.h.

Definition at line 47 of file Configuration.h.

Definition at line 45 of file Configuration.h.