The Gaudi Framework  master (37c0b60a)
RootFileHandler.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
12 // RootFileHandler.h
13 // Provides open/close/reopen functions for ROOT files
14 //
15 // Author: C.Leggett
17 
18 #ifndef GAUDISVC_ROOTFILEHANDLER_H
19 #define GAUDISVC_ROOTFILEHANDLER_H 1
20 
21 #include <GaudiKernel/IFileMgr.h>
23 #include <GaudiKernel/MsgStream.h>
24 
25 #include <string>
26 
28 
29 public:
30  RootFileHandler( IMessageSvc*, const std::string& userProxy, const std::string& certDir );
31 
32  Io::open_t openRootFile( const std::string& n, const Io::IoFlags& f, const std::string& desc, Io::Fd& fd,
33  void*& ptr );
34 
35  Io::close_t closeRootFile( void* ptr );
36  Io::reopen_t reopenRootFile( void*, const Io::IoFlags& );
37 
38  bool setupSSL();
39 
40 private:
42  int m_level;
43 
45  bool m_ssl_setup = false;
46 };
47 
48 #endif
std::string
STL class.
IMessageSvc
Definition: IMessageSvc.h:47
RootFileHandler::m_log
MsgStream m_log
Definition: RootFileHandler.h:41
Io::open_t
int open_t
Definition: IFileMgr.h:243
RootFileHandler::m_ssl_setup
bool m_ssl_setup
Definition: RootFileHandler.h:45
gaudirun.fd
fd
Definition: gaudirun.py:630
RootFileHandler::RootFileHandler
RootFileHandler(IMessageSvc *, const std::string &userProxy, const std::string &certDir)
Definition: RootFileHandler.cpp:25
RootFileHandler::reopenRootFile
Io::reopen_t reopenRootFile(void *, const Io::IoFlags &)
Definition: RootFileHandler.cpp:119
IFileMgr.h
IMessageSvc.h
Io::reopen_t
int reopen_t
Definition: IFileMgr.h:245
RootFileHandler::m_userProxy
std::string m_userProxy
Definition: RootFileHandler.h:44
RootFileHandler::m_level
int m_level
Definition: RootFileHandler.h:42
RootFileHandler::setupSSL
bool setupSSL()
Definition: RootFileHandler.cpp:127
RootFileHandler::openRootFile
Io::open_t openRootFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
Definition: RootFileHandler.cpp:34
RootFileHandler::closeRootFile
Io::close_t closeRootFile(void *ptr)
Definition: RootFileHandler.cpp:92
Io::Fd
int Fd
Definition: IFileMgr.h:169
Io::close_t
int close_t
Definition: IFileMgr.h:244
MsgStream
Definition: MsgStream.h:33
cpluginsvc.n
n
Definition: cpluginsvc.py:234
RootFileHandler::m_certDir
std::string m_certDir
Definition: RootFileHandler.h:44
RootFileHandler
Definition: RootFileHandler.h:27
Io::IoFlags
Definition: IFileMgr.h:50
MsgStream.h