The Gaudi Framework
master (123e188a)
Toggle main menu visibility
Loading...
Searching...
No Matches
FileMgrTest.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
\***********************************************************************************/
11
#pragma once
12
13
//<<<<<< INCLUDES >>>>>>
14
#include <
GaudiKernel/Algorithm.h
>
15
//<<<<<< CLASS DECLARATIONS >>>>>>
19
20
#include <
GaudiKernel/IFileMgr.h
>
21
#include <
GaudiKernel/ServiceHandle.h
>
22
#include <stdio.h>
23
#include <string>
24
25
class
IFileMgr
;
26
class
TFile;
27
28
class
FileMgrTest
:
public
Algorithm
{
29
30
public
:
31
FileMgrTest
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator );
32
StatusCode
initialize
()
override
;
33
StatusCode
execute
()
override
;
34
StatusCode
finalize
()
override
;
35
36
private
:
37
Io::Fd
fd_1
{ -1 },
fd_2
{ -1 },
fd_3
{ -1 },
fd_4
{ -1 };
38
FILE *
fp_1
{
nullptr
}, *
fp_2
{
nullptr
}, *
fp_3
{
nullptr
}, *
fp_4
{
nullptr
};
39
TFile *
fp_r1
{
nullptr
}, *
fp_r2
{
nullptr
}, *
fp_r3
{
nullptr
};
40
std::string
m_f1
,
m_f2
,
m_f3
,
m_f4
,
m_fr1
,
m_fr2
,
m_fr3
;
41
42
ServiceHandle<IFileMgr>
p_fileMgr
{
this
,
"FileMgr"
,
"FileMGr"
};
43
44
StatusCode
PosixOpenAction
(
FILEMGR_CALLBACK_ARGS
);
45
StatusCode
allCloseAction
(
FILEMGR_CALLBACK_ARGS
);
46
};
Algorithm.h
IFileMgr.h
FILEMGR_CALLBACK_ARGS
#define FILEMGR_CALLBACK_ARGS
Definition
IFileMgr.h:272
ServiceHandle.h
FileMgrTest::initialize
StatusCode initialize() override
Definition
FileMgrTest.cpp:33
FileMgrTest::execute
StatusCode execute() override
Definition
FileMgrTest.cpp:176
FileMgrTest::m_f2
std::string m_f2
Definition
FileMgrTest.h:40
FileMgrTest::fp_r1
TFile * fp_r1
Definition
FileMgrTest.h:39
FileMgrTest::fd_3
Io::Fd fd_3
Definition
FileMgrTest.h:37
FileMgrTest::fp_r3
TFile * fp_r3
Definition
FileMgrTest.h:39
FileMgrTest::m_fr2
std::string m_fr2
Definition
FileMgrTest.h:40
FileMgrTest::fd_4
Io::Fd fd_4
Definition
FileMgrTest.h:37
FileMgrTest::fd_2
Io::Fd fd_2
Definition
FileMgrTest.h:37
FileMgrTest::finalize
StatusCode finalize() override
Definition
FileMgrTest.cpp:201
FileMgrTest::m_f4
std::string m_f4
Definition
FileMgrTest.h:40
FileMgrTest::m_fr1
std::string m_fr1
Definition
FileMgrTest.h:40
FileMgrTest::p_fileMgr
ServiceHandle< IFileMgr > p_fileMgr
Definition
FileMgrTest.h:42
FileMgrTest::allCloseAction
StatusCode allCloseAction(FILEMGR_CALLBACK_ARGS)
Definition
FileMgrTest.cpp:302
FileMgrTest::fp_4
FILE * fp_4
Definition
FileMgrTest.h:38
FileMgrTest::fp_2
FILE * fp_2
Definition
FileMgrTest.h:38
FileMgrTest::PosixOpenAction
StatusCode PosixOpenAction(FILEMGR_CALLBACK_ARGS)
Definition
FileMgrTest.cpp:281
FileMgrTest::fp_r2
TFile * fp_r2
Definition
FileMgrTest.h:39
FileMgrTest::m_f1
std::string m_f1
Definition
FileMgrTest.h:40
FileMgrTest::m_f3
std::string m_f3
Definition
FileMgrTest.h:40
FileMgrTest::fd_1
Io::Fd fd_1
Definition
FileMgrTest.h:37
FileMgrTest::fp_1
FILE * fp_1
Definition
FileMgrTest.h:38
FileMgrTest::FileMgrTest
FileMgrTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition
FileMgrTest.cpp:29
FileMgrTest::m_fr3
std::string m_fr3
Definition
FileMgrTest.h:40
FileMgrTest::fp_3
FILE * fp_3
Definition
FileMgrTest.h:38
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
IFileMgr
Definition
IFileMgr.h:276
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
ServiceHandle
Handle to be used in lieu of naked pointers to services.
Definition
ServiceHandle.h:38
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
Io::Fd
int Fd
Definition
IFileMgr.h:158
GaudiTestSuite
src
FileMgr
FileMgrTest.h
Generated on
for The Gaudi Framework by
1.17.0