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 "SimpleTestClass.h"
11#include "TestClassPrimitives.h"
12#include "TestClassVectors.h"
15
16class Token;
17
18namespace pool {
19 class IFileCatalog;
20 class DbType;
21
22 class TestDriver {
23 public:
24 explicit TestDriver( const std::string& catname = "PersF.catatlog.xml" );
26 TestDriver(const TestDriver & ) = delete;
27 TestDriver& operator=(const TestDriver & ) = delete;
28 void loadLibraries( const std::vector<std::string>& libraries );
29 void write( pool::DbType storageType );
30 void read();
32 void clearCache();
34
35 private:
37 std::string m_fileName1;
38 std::string m_fileName2;
39 int m_events;
41 std::vector< Token* > m_tokens;
42 std::vector< SimpleTestClass > m_simpleTestClass;
43 std::vector< TestClassPrimitives > m_testClassPrimitives;
44 std::vector< TestClassVectors > m_testClassVectors;
45 std::vector< TestClassSTLContainers > m_testClassSTLContainers;
46 };
47
48}
49
50#endif
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
std::vector< TestClassVectors > m_testClassVectors
void loadLibraries(const std::vector< std::string > &libraries)
void readCollections()
TestDriver(const std::string &catname="PersExtF.catatlog.xml")
std::vector< SimpleTestClass > m_simpleTestClass
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
pool namespace
Definition libname.h:15