The Gaudi Framework  v33r0 (d5ea422b)
RootFileHandler.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:34
int reopen_t
Definition: IFileMgr.h:245
int Fd
Definition: IFileMgr.h:169
Io::open_t openRootFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
int open_t
Definition: IFileMgr.h:243
Io::close_t closeRootFile(void *ptr)
Io::reopen_t reopenRootFile(void *, const Io::IoFlags &)
STL class.
std::string m_userProxy
std::string m_certDir
The IMessage is the interface implemented by the message service.
Definition: IMessageSvc.h:47
int close_t
Definition: IFileMgr.h:244
RootFileHandler(IMessageSvc *, const std::string &userProxy, const std::string &certDir)