The Gaudi Framework
master (181af51f)
Loading...
Searching...
No Matches
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
};
IFileMgr.h
IMessageSvc.h
MsgStream.h
IMessageSvc
The IMessage is the interface implemented by the message service.
Definition
IMessageSvc.h:34
Io::IoFlags
Definition
IFileMgr.h:43
MsgStream
Definition of the MsgStream class used to transmit messages.
Definition
MsgStream.h:29
POSIXFileHandler::closePOSIXFile
Io::close_t closePOSIXFile(Io::Fd fd)
Definition
POSIXFileHandler.cpp:86
POSIXFileHandler::POSIXFileHandler
POSIXFileHandler(IMessageSvc *)
Definition
POSIXFileHandler.cpp:25
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
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
Io::reopen_t
int reopen_t
Definition
IFileMgr.h:232
Io::Fd
int Fd
Definition
IFileMgr.h:158
Io::close_t
int close_t
Definition
IFileMgr.h:231
Io::open_t
int open_t
Definition
IFileMgr.h:230
GaudiSvc
src
FileMgr
POSIXFileHandler.h
Generated on Wed Oct 8 2025 09:53:37 for The Gaudi Framework by
1.13.1