The Gaudi Framework
v40r0 (475e45c1)
POSIXFileHandler.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
#pragma once
19
20
#include <
GaudiKernel/IFileMgr.h
>
21
#include <
GaudiKernel/IMessageSvc.h
>
22
#include <
GaudiKernel/MsgStream.h
>
23
24
#include <string>
25
26
class
POSIXFileHandler
{
27
28
public
:
29
POSIXFileHandler
(
IMessageSvc
* );
30
31
Io::open_t
openPOSIXFile
(
const
std::string&
n
,
const
Io::IoFlags
& f,
const
std::string& desc,
Io::Fd
&
fd
,
32
void
*& ptr );
33
34
Io::close_t
closePOSIXFile
(
Io::Fd
fd
);
35
Io::reopen_t
reopenPOSIXFile
(
Io::Fd
fd
,
const
Io::IoFlags
& );
36
37
private
:
38
MsgStream
m_log
;
39
int
m_level
;
40
};
IMessageSvc
Definition:
IMessageSvc.h:44
Io::open_t
int open_t
Definition:
IFileMgr.h:230
gaudirun.fd
fd
Definition:
gaudirun.py:630
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:39
IFileMgr.h
POSIXFileHandler::POSIXFileHandler
POSIXFileHandler(IMessageSvc *)
Definition:
POSIXFileHandler.cpp:25
IMessageSvc.h
Io::reopen_t
int reopen_t
Definition:
IFileMgr.h:232
POSIXFileHandler::closePOSIXFile
Io::close_t closePOSIXFile(Io::Fd fd)
Definition:
POSIXFileHandler.cpp:86
Io::Fd
int Fd
Definition:
IFileMgr.h:158
Io::close_t
int close_t
Definition:
IFileMgr.h:231
MsgStream
Definition:
MsgStream.h:29
POSIXFileHandler
Definition:
POSIXFileHandler.h:26
cpluginsvc.n
n
Definition:
cpluginsvc.py:234
POSIXFileHandler::m_log
MsgStream m_log
Definition:
POSIXFileHandler.h:38
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:43
MsgStream.h
GaudiSvc
src
FileMgr
POSIXFileHandler.h
Generated on Thu Jul 3 2025 15:27:25 for The Gaudi Framework by
1.8.18