ATLAS Offline Software
Loading...
Searching...
No Matches
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"
12
13class Token;
14
15namespace pool {
16 class IFileCatalog;
17
18 class TestDriver {
19 public:
20 TestDriver(const std::string& filename, const std::string& catname);
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
29
30 std::string m_fileName;
31
32private:
34 std::vector< SimpleTestClass > m_simpleTestClass;
35 };
36
37}
38
39#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
void loadLibraries(const std::vector< std::string > &libraries)
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)
TestDriver(const TestDriver &)=delete
TestDriver & operator=(const TestDriver &)=delete
pool namespace
Definition libname.h:15