test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
ReadBase Class Referenceabstract

#include <ReadBase.h>

Public Member Functions

 ReadBase ()
 
virtual void run ()=0
 
void setVerbosityLevel (coral::MsgLevel level)
 
virtual ~ReadBase ()
 

Protected Member Functions

coral::ISessionProxy * connect (const std::string &connectionString, const std::string &user, const std::string &password)
 

Private Attributes

coral::ConnectionService m_connectionService
 

Detailed Description

Definition at line 22 of file ReadBase.h.

Constructor & Destructor Documentation

ReadBase::ReadBase ( )

Definition at line 12 of file ReadBase.cc.

12  :
14  //coral::Context& context = coral::Context::instance();
15  //context.loadComponent( "CORAL/RelationalPlugins/oracle" );
16  //coral::IHandle<coral::IRelationalDomain> domain = context.query<coral::IRelationalDomain>( "CORAL/RelationalPlugins/oracle" );
17  //if ( ! domain.isValid() )
18  // throw std::runtime_error( "Could not load the OracleAccess plugin" );
19 }
coral::ConnectionService m_connectionService
Definition: ReadBase.h:34
ReadBase::~ReadBase ( )
virtual

Definition at line 21 of file ReadBase.cc.

21  {
22  //if ( m_connection ) delete m_connection;
23 }

Member Function Documentation

coral::ISessionProxy * ReadBase::connect ( const std::string &  connectionString,
const std::string &  user,
const std::string &  password 
)
protected

Definition at line 26 of file ReadBase.cc.

References m_connectionService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

28  {
29  //coral::Context& ctx = coral::Context::instance();
30  //coral::IHandle<coral::IRelationalDomain> iHandle=ctx.query<coral::IRelationalDomain>("CORAL/RelationalPlugins/oracle");
31  //if ( ! iHandle.isValid() )
32  // throw std::runtime_error( "Could not load the OracleAccess plugin" );
33  //
34  //std::pair<std::string, std::string> connectionAndSchema = iHandle->decodeUserConnectionString( connectionString );
35  //if ( ! m_connection )
36  // m_connection = iHandle->newConnection( connectionAndSchema.first );
37 
38  //if ( ! m_connection->isConnected() )
39  // m_connection->connect();
40 
41  //coral::ISession* session = m_connection->newSession( connectionAndSchema.second );
42  //if ( session )
43  // session->startUserSession( user, pass );
44  std::string userEnv("CORAL_AUTH_USER="+user);
45  std::string passEnv("CORAL_AUTH_PASSWORD="+pass);
46  ::putenv( const_cast<char*>(userEnv.c_str()));
47  ::putenv( const_cast<char*>(passEnv.c_str()));
48  m_connectionService.configuration().setAuthenticationService("CORAL/Services/EnvironmentAuthenticationService");
49  return m_connectionService.connect( connectionString );
50 }
coral::ConnectionService m_connectionService
Definition: ReadBase.h:34
string connectionString
Definition: autoCondHLT.py:4
virtual void ReadBase::run ( )
pure virtual
void ReadBase::setVerbosityLevel ( coral::MsgLevel  level)

Definition at line 53 of file ReadBase.cc.

53  {
54  coral::MessageStream::setMsgVerbosity(level);
55 }
tuple level
Definition: testEve_cfg.py:34

Member Data Documentation

coral::ConnectionService ReadBase::m_connectionService
private

Definition at line 34 of file ReadBase.h.

Referenced by connect().