ATLAS Offline Software
Loading...
Searching...
No Matches
PersistencySvc_Functionality/TestDriver.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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 "TestClassPrimitives.h"
13#include "TestClassVectors.h"
16
17class Token;
18
19namespace Gaudi {
20 class IFileCatalog;
21 class IFileCatalogMgr;
22}
23
24namespace pool {
25 class DbType;
26
27 class TestDriver {
28 public:
29 explicit TestDriver( const std::string& catname = "PersF.catatlog.xml" );
31 TestDriver(const TestDriver & ) = delete;
32 TestDriver& operator=(const TestDriver & ) = delete;
33 void loadLibraries( const std::vector<std::string>& libraries );
34 void write( pool::DbType storageType );
35 void read();
37 void clearCache();
39
40 private:
41 SmartIF<Gaudi::IFileCatalogMgr> m_fileCatalogMgr;
42 SmartIF<Gaudi::IFileCatalog> m_fileCatalog;
43 std::string m_fileName1;
44 std::string m_fileName2;
45 int m_events;
47 std::vector< Token* > m_tokens;
48 std::vector< SimpleTestClass > m_simpleTestClass;
49 std::vector< TestClassPrimitives > m_testClassPrimitives;
50 std::vector< TestClassVectors > m_testClassVectors;
51 std::vector< TestClassSTLContainers > m_testClassSTLContainers;
52 };
53
54}
55
56#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22
std::vector< TestClassVectors > m_testClassVectors
void loadLibraries(const std::vector< std::string > &libraries)
void readCollections()
SmartIF< Gaudi::IFileCatalogMgr > m_fileCatalogMgr
TestDriver(const std::string &catname="PersExtF.catatlog.xml")
std::vector< SimpleTestClass > m_simpleTestClass
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
std::vector< TestClassPrimitives > m_testClassPrimitives
TestDriver(const TestDriver &)=delete
TestDriver(const std::string &catname="PersF.catatlog.xml")
std::vector< TestClassSTLContainers > m_testClassSTLContainers
void write(pool::DbType storageType)
TestDriver & operator=(const TestDriver &)=delete
=============================================================================
Framework include files.
Definition libname.h:15