ATLAS Offline Software
Database
APR
APRTests
PersistencySvc_FileOpenWithoutCatalog
PersistencySvc_FileOpenWithoutCatalog/TestDriver.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TESTDRIVER_H
6
#define TESTDRIVER_H
7
8
#include <vector>
9
#include <string>
10
#include "
SimpleTestClass.h
"
11
#include "
PersistencySvc/DatabaseSpecification.h
"
12
13
class
Token
;
14
15
namespace
pool
{
16
class
IFileCatalog;
17
18
class
TestDriver
{
19
public
:
20
TestDriver
(
const
std::string&
filename
,
const
std::string& catname);
21
~TestDriver
();
22
TestDriver
(
const
TestDriver
& ) =
delete
;
23
TestDriver
&
operator=
(
const
TestDriver
& ) =
delete
;
24
void
loadLibraries
(
const
std::vector<std::string>& libraries );
25
void
write
();
26
// read back using possibly a different path and name type
27
void
read
(
const
std::string&
fileName
=
""
,
// by default use the name used for writing
28
DatabaseSpecification::NameType
nameType
=
DatabaseSpecification::PFN
);
29
30
std::string
m_fileName
;
31
32
private
:
33
IFileCatalog
*
m_fileCatalog
;
34
std::vector< SimpleTestClass >
m_simpleTestClass
;
35
};
36
37
}
38
39
#endif
pool::TestDriver
Definition:
PersistencySvc_FileCatalogOperations/TestDriver.h:17
checkxAOD.nameType
nameType
Definition:
Tools/PyUtils/bin/checkxAOD.py:188
TestDriver
Definition:
StorageSvc_AuxStore/TestDriver.h:11
pool::TestDriver::m_simpleTestClass
std::vector< SimpleTestClass > m_simpleTestClass
Definition:
PersistencySvc_FileOpenWithoutCatalog/TestDriver.h:34
pool
pool namespace
Definition:
libname.h:15
pool::DatabaseSpecification::NameType
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
Definition:
DatabaseSpecification.h:14
pool::TestDriver::m_fileName
std::string m_fileName
Definition:
PersistencySvc_FileOpenWithoutCatalog/TestDriver.h:30
pool::TestDriver::operator=
TestDriver & operator=(const TestDriver &)=delete
SimpleTestClass.h
pool::TestDriver::read
void read(const std::string &fileName="", DatabaseSpecification::NameType nameType=DatabaseSpecification::PFN)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition:
Token.h:21
FortranAlgorithmOptions.fileName
fileName
Definition:
FortranAlgorithmOptions.py:13
pool::IFileCatalog
Definition:
IFileCatalog.h:23
pool::TestDriver::~TestDriver
~TestDriver()
pool::TestDriver::loadLibraries
void loadLibraries(const std::vector< std::string > &libraries)
pool::DatabaseSpecification::PFN
@ PFN
Definition:
DatabaseSpecification.h:16
pool::TestDriver::TestDriver
TestDriver(const TestDriver &)=delete
DatabaseSpecification.h
pool::TestDriver::m_fileCatalog
IFileCatalog * m_fileCatalog
Definition:
PersistencySvc_FileCatalogOperations/TestDriver.h:28
CaloCellTimeCorrFiller.filename
filename
Definition:
CaloCellTimeCorrFiller.py:24
pool::TestDriver::TestDriver
TestDriver(const std::string &filename, const std::string &catname)
pool::TestDriver::write
void write()
Generated on Mon Dec 23 2024 21:19:25 for ATLAS Offline Software by
1.8.18