ATLAS Offline Software
PersistencySvc_Functionality/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"
11 #include "TestClassPrimitives.h"
12 #include "TestClassVectors.h"
14 
15 class Token;
16 
17 namespace pool {
18  class IFileCatalog;
19  class DbType;
20 
21  class TestDriver {
22  public:
23  TestDriver( const std::string& catname = "PersF.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( pool::DbType storageType );
29  void read();
31  void updateObjects();
33  void clearCache();
34  void readFileSizes();
35 
36  private:
38  std::string m_fileName1;
39  std::string m_fileName2;
40  int m_events;
42  std::vector< Token* > m_tokens;
43  std::vector< SimpleTestClass > m_simpleTestClass;
44  std::vector< TestClassPrimitives > m_testClassPrimitives;
45  std::vector< TestClassVectors > m_testClassVectors;
46  std::vector< TestClassSimpleContainers > m_testClassSimpleContainers;
47  };
48 
49 }
50 
51 #endif
pool::TestDriver
Definition: PersistencySvc_FileCatalogOperations/TestDriver.h:17
TestDriver
Definition: StorageSvc_AuxStore/TestDriver.h:11
pool::TestDriver::m_simpleTestClass
std::vector< SimpleTestClass > m_simpleTestClass
Definition: PersistencySvc_FileOpenWithoutCatalog/TestDriver.h:34
pool::TestDriver::m_testClassVectors
std::vector< TestClassVectors > m_testClassVectors
Definition: PersistencySvc_Functionality/TestDriver.h:45
pool
pool namespace
Definition: libname.h:15
pool::TestDriver::TestDriver
TestDriver(const std::string &catname="PersF.catatlog.xml")
pool::TestDriver::readCollections
void readCollections()
pool::TestDriver::m_fileName2
std::string m_fileName2
Definition: PersistencySvc_FileCatalogOperations/TestDriver.h:31
pool::TestDriver::operator=
TestDriver & operator=(const TestDriver &)=delete
pool::TestDriver::m_testClassPrimitives
std::vector< TestClassPrimitives > m_testClassPrimitives
Definition: PersistencySvc_Functionality/TestDriver.h:44
SimpleTestClass.h
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition: Token.h:21
TestClassSimpleContainers.h
pool::IFileCatalog
Definition: IFileCatalog.h:23
pool::TestDriver::m_tokens
std::vector< Token * > m_tokens
Definition: PersistencySvc_Functionality/TestDriver.h:42
pool::DbType
Definition: DbType.h:31
TestClassVectors.h
pool::TestDriver::updateObjects
void updateObjects()
pool::TestDriver::m_events
int m_events
Definition: PersistencySvc_FileCatalogOperations/TestDriver.h:35
pool::TestDriver::~TestDriver
~TestDriver()
pool::TestDriver::read
void read()
pool::TestDriver::loadLibraries
void loadLibraries(const std::vector< std::string > &libraries)
pool::TestDriver::m_testClassSimpleContainers
std::vector< TestClassSimpleContainers > m_testClassSimpleContainers
Definition: PersistencySvc_Functionality/TestDriver.h:46
pool::TestDriver::m_fileName1
std::string m_fileName1
Definition: PersistencySvc_FileCatalogOperations/TestDriver.h:29
pool::TestDriver::write
void write(pool::DbType storageType)
pool::TestDriver::readBackUpdatedObjects
void readBackUpdatedObjects()
TestClassPrimitives.h
pool::TestDriver::TestDriver
TestDriver(const TestDriver &)=delete
pool::TestDriver::m_eventsToCommitAndHold
int m_eventsToCommitAndHold
Definition: PersistencySvc_Functionality/TestDriver.h:41
pool::TestDriver::m_fileCatalog
pool::IFileCatalog * m_fileCatalog
Definition: PersistencySvc_Functionality/TestDriver.h:37
pool::TestDriver::clearCache
void clearCache()
pool::TestDriver::readFileSizes
void readFileSizes()