4 #include "TSSLSocket.h" 9 #include "boost/algorithm/string.hpp" 11 namespace ba = boost::algorithm;
16 : m_log( msg,
"RootFileHandler" ), m_userProxy( p ), m_certDir( c )
20 static TROOT
root(
"root",
"ROOT I/O" );
56 if ( ba::starts_with( n,
"https://", ba::is_iequal{} ) || ba::starts_with( n,
"http://", ba::is_iequal{} ) ) {
60 <<
"requested mode is: " << f <<
endmsg;
64 if ( !
m_ssl_setup && ba::starts_with( n,
"https://", ba::is_iequal{} ) ) {
76 <<
" -> file probably corrupt." <<
endmsg;
83 if ( tf && tf->IsZombie() ) {
84 m_log <<
MSG::ERROR <<
"Problems opening input file \"" << n <<
"\": file does not exist or in not accessible" 97 <<
" -> file probably corrupt." <<
endmsg;
105 if ( !tf || !tf->IsOpen() ) {
106 m_log <<
MSG::ERROR <<
"Unable to open ROOT file \"" << n <<
"\" with options \"" << opt <<
"\"" <<
endmsg;
133 TFile* tf =
static_cast<TFile*
>( ptr );
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
Io::open_t openRootFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
Io::close_t closeRootFile(void *ptr)
Io::reopen_t reopenRootFile(void *, const Io::IoFlags &)
The IMessage is the interface implemented by the message service.
void setLevel(int level)
Update outputlevel.
MSG::Level level() const
Retrieve output level.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
RootFileHandler(IMessageSvc *, const std::string &userProxy, const std::string &certDir)
virtual int outputLevel() const =0
Retrieve the current output level threshold.