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 "
SimpleTestClass.h
"
11
#include "
PersistencySvc/IDatabase.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
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::IFileCatalog
Definition
IFileCatalog.h:20
pool::TestDriver
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:18
pool::TestDriver::loadLibraries
void loadLibraries(const std::vector< std::string > &libraries)
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:31
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:34
pool::TestDriver::TestDriver
TestDriver(const std::string &filename, const std::string &catname)
pool::TestDriver::write
void write()
pool::TestDriver::m_fileCatalog
pool::IFileCatalog * m_fileCatalog
Definition
PersistencySvc_ExtraFunctionality/TestDriver.h:30
pool::TestDriver::TestDriver
TestDriver(const TestDriver &)=delete
pool::TestDriver::operator=
TestDriver & operator=(const TestDriver &)=delete
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