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#include "PoolTestBase.h"
12
13class Token;
14
15namespace Gaudi {
16 class IFileCatalog;
17 class IFileCatalogMgr;
18}
19
20class TestDriver : public PoolTestBase {
21 public:
22 explicit TestDriver(const std::string& filename = "NCI.pool.root", const std::string& catname = "NCI.catatlog.xml" );
24
25 void write();
26 void read();
27 private:
28 SmartIF<Gaudi::IFileCatalogMgr> m_fileCatalogMgr;
29 SmartIF<Gaudi::IFileCatalog> m_fileCatalog;
30 std::string m_fileName;
31 int m_events;
32 std::vector< Token* > m_tokens;
33};
34
35#endif
Small helper base class for pool tests.
TestDriver(const std::string &filename="NCI.pool.root", const std::string &catname="NCI.catatlog.xml")
SmartIF< Gaudi::IFileCatalogMgr > m_fileCatalogMgr
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
void read()
void write()
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22
=============================================================================