The Gaudi Framework
v36r1 (3e2fb5a8)
POSIXFileHandler.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
// POSIXFileHandler.h
13
// Provides open/close/reopen functions for POSIX (ASCII) files
14
//
15
// Author: C.Leggett
17
18
#ifndef GAUDISVC_POSIXFILEHANDLER_H
19
#define GAUDISVC_POSIXFILEHANDLER_H 1
20
21
#include "
GaudiKernel/IFileMgr.h
"
22
#include "
GaudiKernel/IMessageSvc.h
"
23
#include "
GaudiKernel/MsgStream.h
"
24
25
#include <string>
26
27
class
POSIXFileHandler
{
28
29
public
:
30
POSIXFileHandler
(
IMessageSvc
* );
31
32
Io::open_t
openPOSIXFile
(
const
std::string
&
n
,
const
Io::IoFlags
& f,
const
std::string
& desc,
Io::Fd
&
fd
,
33
void
*& ptr );
34
35
Io::close_t
closePOSIXFile
(
Io::Fd
fd
);
36
Io::reopen_t
reopenPOSIXFile
(
Io::Fd
fd
,
const
Io::IoFlags
& );
37
38
private
:
39
MsgStream
m_log
;
40
int
m_level
;
41
};
42
43
#endif
std::string
STL class.
IMessageSvc
Definition:
IMessageSvc.h:47
Io::open_t
int open_t
Definition:
IFileMgr.h:243
gaudirun.fd
fd
Definition:
gaudirun.py:597
POSIXFileHandler::reopenPOSIXFile
Io::reopen_t reopenPOSIXFile(Io::Fd fd, const Io::IoFlags &)
Definition:
POSIXFileHandler.cpp:106
POSIXFileHandler::m_level
int m_level
Definition:
POSIXFileHandler.h:40
IFileMgr.h
POSIXFileHandler::POSIXFileHandler
POSIXFileHandler(IMessageSvc *)
Definition:
POSIXFileHandler.cpp:25
IMessageSvc.h
Io::reopen_t
int reopen_t
Definition:
IFileMgr.h:245
POSIXFileHandler::closePOSIXFile
Io::close_t closePOSIXFile(Io::Fd fd)
Definition:
POSIXFileHandler.cpp:86
Io::Fd
int Fd
Definition:
IFileMgr.h:169
Io::close_t
int close_t
Definition:
IFileMgr.h:244
MsgStream
Definition:
MsgStream.h:34
POSIXFileHandler
Definition:
POSIXFileHandler.h:27
GaudiPluginService.cpluginsvc.n
n
Definition:
cpluginsvc.py:221
POSIXFileHandler::m_log
MsgStream m_log
Definition:
POSIXFileHandler.h:39
POSIXFileHandler::openPOSIXFile
Io::open_t openPOSIXFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
Definition:
POSIXFileHandler.cpp:32
Io::IoFlags
Definition:
IFileMgr.h:50
MsgStream.h
GaudiSvc
src
FileMgr
POSIXFileHandler.h
Generated on Tue Sep 21 2021 12:27:48 for The Gaudi Framework by
1.8.18