The Gaudi Framework  master (181af51f)
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 >>>>>>
15//<<<<<< CLASS DECLARATIONS >>>>>>
19
22#include <stdio.h>
23#include <string>
24
25class IFileMgr;
26class TFile;
27
28class FileMgrTest : public Algorithm {
29
30public:
31 FileMgrTest( const std::string& name, ISvcLocator* pSvcLocator );
32 StatusCode initialize() override;
33 StatusCode execute() override;
34 StatusCode finalize() override;
35
36private:
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
46};
#define FILEMGR_CALLBACK_ARGS
Definition IFileMgr.h:272
StatusCode initialize() override
StatusCode execute() override
std::string m_f2
Definition FileMgrTest.h:40
TFile * fp_r1
Definition FileMgrTest.h:39
Io::Fd fd_3
Definition FileMgrTest.h:37
TFile * fp_r3
Definition FileMgrTest.h:39
std::string m_fr2
Definition FileMgrTest.h:40
Io::Fd fd_4
Definition FileMgrTest.h:37
Io::Fd fd_2
Definition FileMgrTest.h:37
StatusCode finalize() override
std::string m_f4
Definition FileMgrTest.h:40
std::string m_fr1
Definition FileMgrTest.h:40
ServiceHandle< IFileMgr > p_fileMgr
Definition FileMgrTest.h:42
StatusCode allCloseAction(FILEMGR_CALLBACK_ARGS)
FILE * fp_4
Definition FileMgrTest.h:38
FILE * fp_2
Definition FileMgrTest.h:38
StatusCode PosixOpenAction(FILEMGR_CALLBACK_ARGS)
TFile * fp_r2
Definition FileMgrTest.h:39
std::string m_f1
Definition FileMgrTest.h:40
std::string m_f3
Definition FileMgrTest.h:40
Io::Fd fd_1
Definition FileMgrTest.h:37
FILE * fp_1
Definition FileMgrTest.h:38
FileMgrTest(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_fr3
Definition FileMgrTest.h:40
FILE * fp_3
Definition FileMgrTest.h:38
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
const std::string & name() const override
The identifying name of the algorithm object.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
Handle to be used in lieu of naked pointers to services.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
int Fd
Definition IFileMgr.h:158