ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
APRTests
PersistencySvc_FileOpenWithoutCatalog
PersistencySvc_FileOpenWithoutCatalog/TestDriver.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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 "GaudiKernel/SmartIF.h"
11
#include "
SimpleTestClass.h
"
12
#include "
PoolSvc/IDatabase.h
"
13
14
class
Token
;
15
16
namespace
Gaudi
{
17
class
IFileCatalog;
18
class
IFileCatalogMgr;
19
}
20
21
namespace
pool
{
22
23
class
TestDriver
{
24
public
:
25
TestDriver
(
const
std::string& filename,
const
std::string& catname);
26
~TestDriver
();
27
TestDriver
(
const
TestDriver
& ) =
delete
;
28
TestDriver
&
operator=
(
const
TestDriver
& ) =
delete
;
29
void
loadLibraries
(
const
std::vector<std::string>& libraries );
30
void
write
();
31
// read back using possibly a different path and name type
32
void
read
(
const
std::string& fileName =
""
,
// by default use the name used for writing
33
DatabaseSpecification::NameType
nameType =
DatabaseSpecification::PFN
);
34
35
std::string
m_fileName
;
36
37
private
:
38
SmartIF<Gaudi::IFileCatalogMgr>
m_fileCatalogMgr
;
39
SmartIF<Gaudi::IFileCatalog>
m_fileCatalog
;
40
std::vector< SimpleTestClass >
m_simpleTestClass
;
41
};
42
43
}
44
45
#endif
IDatabase.h
SimpleTestClass.h
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::TestDriver
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:23
pool::TestDriver::loadLibraries
void loadLibraries(const std::vector< std::string > &libraries)
pool::TestDriver::m_fileCatalogMgr
SmartIF< Gaudi::IFileCatalogMgr > m_fileCatalogMgr
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:35
pool::TestDriver::TestDriver
TestDriver(const std::string &catname="PersExtF.catatlog.xml")
pool::TestDriver::~TestDriver
~TestDriver()
pool::TestDriver::m_fileName
std::string m_fileName
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:37
pool::TestDriver::read
void read(const std::string &fileName="", DatabaseSpecification::NameType nameType=DatabaseSpecification::PFN)
pool::TestDriver::m_simpleTestClass
std::vector< SimpleTestClass > m_simpleTestClass
Definition
PersistencySvc_FileOpenWithoutCatalog/TestDriver.h:40
pool::TestDriver::TestDriver
TestDriver(const std::string &filename, const std::string &catname)
pool::TestDriver::m_fileCatalog
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:36
pool::TestDriver::write
void write()
pool::TestDriver::TestDriver
TestDriver(const TestDriver &)=delete
pool::TestDriver::operator=
TestDriver & operator=(const TestDriver &)=delete
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:274
pool
Framework include files.
Definition
libname.h:15
pool::DatabaseSpecification::NameType
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
Definition
IDatabase.h:24
pool::DatabaseSpecification::PFN
@ PFN
Definition
IDatabase.h:25
Generated on
for ATLAS Offline Software by
1.17.0