ATLAS Offline Software
Loading...
Searching...
No Matches
PersistencySvc_NoClassID/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 "GaudiKernel/SmartIF.h"
11
12class Token;
13
14namespace Gaudi {
15 class IFileCatalog;
16 class IFileCatalogMgr;
17}
18
19namespace pool {
20
21 class TestDriver {
22 public:
23 explicit TestDriver(const std::string& filename = "NCI.pool.root", const std::string& catname = "NCI.catatlog.xml" );
25 TestDriver(const TestDriver & ) = delete;
26 TestDriver& operator=(const TestDriver & ) = delete;
27 void loadLibraries( const std::vector<std::string>& libraries );
28 void write();
29 void read();
30 private:
31 SmartIF<Gaudi::IFileCatalogMgr> m_fileCatalogMgr;
32 SmartIF<Gaudi::IFileCatalog> m_fileCatalog;
33 std::string m_fileName;
34 int m_events;
35 std::vector< Token* > m_tokens;
36 };
37
38}
39
40#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")
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
TestDriver(const TestDriver &)=delete
TestDriver(const std::string &filename="NCI.pool.root", const std::string &catname="NCI.catatlog.xml")
TestDriver & operator=(const TestDriver &)=delete
=============================================================================
Framework include files.
Definition libname.h:15