ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class Token;
15
16namespace Gaudi {
17 class IFileCatalog;
18 class IFileCatalogMgr;
19}
20
21namespace pool {
22
23 class TestDriver {
24 public:
25 TestDriver(const std::string& filename, const std::string& catname);
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
34
35 std::string m_fileName;
36
37private:
38 SmartIF<Gaudi::IFileCatalogMgr> m_fileCatalogMgr;
39 SmartIF<Gaudi::IFileCatalog> m_fileCatalog;
40 std::vector< SimpleTestClass > m_simpleTestClass;
41 };
42
43}
44
45#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22
void loadLibraries(const std::vector< std::string > &libraries)
SmartIF< Gaudi::IFileCatalogMgr > m_fileCatalogMgr
TestDriver(const std::string &catname="PersExtF.catatlog.xml")
void read(const std::string &fileName="", DatabaseSpecification::NameType nameType=DatabaseSpecification::PFN)
std::vector< SimpleTestClass > m_simpleTestClass
TestDriver(const std::string &filename, const std::string &catname)
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
TestDriver(const TestDriver &)=delete
TestDriver & operator=(const TestDriver &)=delete
=============================================================================
Framework include files.
Definition libname.h:15
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
Definition IDatabase.h:24