ATLAS Offline Software
Loading...
Searching...
No Matches
pool::TestDriver Class Reference

#include <TestDriver.h>

Inheritance diagram for pool::TestDriver:
Collaboration diagram for pool::TestDriver:

Public Member Functions

 TestDriver (const std::string &catname="FCO.catatlog.xml")
 ~TestDriver ()
void write ()
void addlfns ()
void read ()
 TestDriver (const std::string &filename, const std::string &catname)
 ~TestDriver ()
void write ()
void read (const std::string &fileName="", DatabaseSpecification::NameType nameType=DatabaseSpecification::PFN)
 TestDriver (const std::string &catname="PersF.catatlog.xml")
 ~TestDriver ()
void write (pool::DbType storageType)
void read ()
void readCollections ()
void clearCache ()
void readFileSizes ()
ToolHandle< ISessionTool > createSession (Gaudi::IFileCatalog &fileCatalog, const std::string &sessionName)
 create a session tool for the test with @sessionName, attach the catalog to it

Static Public Member Functions

static void loadLibraries (const std::vector< std::string > &libraries)
 load local dictionary libraries for the test

Public Attributes

std::string m_fileName

Private Attributes

SmartIF< Gaudi::IFileCatalogMgr > m_fileCatalogMgr
SmartIF< Gaudi::IFileCatalog > m_fileCatalog
std::string m_fileName1
std::string m_lfn1
std::string m_fileName2
std::string m_lfn2
std::string m_fileName3
std::string m_lfn3
int m_events
std::vector< SimpleTestClass > m_simpleTestClass
int m_eventsToCommitAndHold
std::vector< Token * > m_tokens
std::vector< TestClassPrimitives > m_testClassPrimitives
std::vector< TestClassVectors > m_testClassVectors
std::vector< TestClassSTLContainers > m_testClassSTLContainers

Detailed Description

Constructor & Destructor Documentation

◆ TestDriver() [1/3]

pool::TestDriver::TestDriver ( const std::string & catname = "FCO.catatlog.xml")
explicit

◆ ~TestDriver() [1/3]

pool::TestDriver::~TestDriver ( )

◆ TestDriver() [2/3]

pool::TestDriver::TestDriver ( const std::string & filename,
const std::string & catname )

◆ ~TestDriver() [2/3]

pool::TestDriver::~TestDriver ( )

◆ TestDriver() [3/3]

pool::TestDriver::TestDriver ( const std::string & catname = "PersF.catatlog.xml")
explicit

◆ ~TestDriver() [3/3]

pool::TestDriver::~TestDriver ( )

Member Function Documentation

◆ addlfns()

void pool::TestDriver::addlfns ( )

◆ clearCache()

void pool::TestDriver::clearCache ( )

◆ createSession()

ToolHandle< ISessionTool > PoolTestBase::createSession ( Gaudi::IFileCatalog & fileCatalog,
const std::string & sessionName )
inlineinherited

create a session tool for the test with @sessionName, attach the catalog to it

Definition at line 49 of file PoolTestBase.h.

50{
51 std::cout << "Creating the persistency service" << std::endl;
52 auto dbsession = ToolHandle<ISessionTool>("SessionTool/" + sessionName, Gaudi::svcLocator()->service("ToolSvc"));
53 if( !dbsession.retrieve().isSuccess() ) {
54 throw std::runtime_error( "Could not create DB Session" );
55 }
56 dbsession->setupFC( catalog );
57 return dbsession;
58}

◆ loadLibraries()

void PoolTestBase::loadLibraries ( const std::vector< std::string > & libraries)
inlinestaticinherited

load local dictionary libraries for the test

Definition at line 32 of file PoolTestBase.h.

33{
34 for( std::vector<std::string>::const_iterator iLibrary = libraries.begin();
35 iLibrary != libraries.end(); ++iLibrary ) {
36 const std::string& library = *iLibrary;
37 std::cout << "Loading library " << library << std::endl;
38
39 System::ImageHandle libhandle;
40 if( System::loadDynamicLib(library, &libhandle) != 1 ) {
41 std::cout << "Error! library loading failed" << std::endl;
42 }
43 }
44}

◆ read() [1/3]

void pool::TestDriver::read ( )

◆ read() [2/3]

void pool::TestDriver::read ( )

◆ read() [3/3]

void pool::TestDriver::read ( const std::string & fileName = "",
DatabaseSpecification::NameType nameType = DatabaseSpecification::PFN )

◆ readCollections()

void pool::TestDriver::readCollections ( )

◆ readFileSizes()

void pool::TestDriver::readFileSizes ( )

◆ write() [1/3]

void pool::TestDriver::write ( )

◆ write() [2/3]

void pool::TestDriver::write ( )

◆ write() [3/3]

void pool::TestDriver::write ( pool::DbType storageType)

Member Data Documentation

◆ m_events

int TestDriver::m_events
private

◆ m_eventsToCommitAndHold

int pool::TestDriver::m_eventsToCommitAndHold
private

Definition at line 45 of file PersistencySvc_Functionality/TestDriver.h.

◆ m_fileCatalog

SmartIF< Gaudi::IFileCatalog > TestDriver::m_fileCatalog
private

◆ m_fileCatalogMgr

SmartIF< Gaudi::IFileCatalogMgr > TestDriver::m_fileCatalogMgr
private

◆ m_fileName

std::string pool::TestDriver::m_fileName

◆ m_fileName1

std::string TestDriver::m_fileName1
private

◆ m_fileName2

std::string TestDriver::m_fileName2
private

◆ m_fileName3

std::string pool::TestDriver::m_fileName3
private

◆ m_lfn1

std::string pool::TestDriver::m_lfn1
private

◆ m_lfn2

std::string pool::TestDriver::m_lfn2
private

◆ m_lfn3

std::string pool::TestDriver::m_lfn3
private

◆ m_simpleTestClass

std::vector< SimpleTestClass > TestDriver::m_simpleTestClass
private

◆ m_testClassPrimitives

std::vector< TestClassPrimitives > pool::TestDriver::m_testClassPrimitives
private

Definition at line 48 of file PersistencySvc_Functionality/TestDriver.h.

◆ m_testClassSTLContainers

std::vector< TestClassSTLContainers > pool::TestDriver::m_testClassSTLContainers
private

Definition at line 50 of file PersistencySvc_Functionality/TestDriver.h.

◆ m_testClassVectors

std::vector< TestClassVectors > pool::TestDriver::m_testClassVectors
private

Definition at line 49 of file PersistencySvc_Functionality/TestDriver.h.

◆ m_tokens

std::vector< Token* > pool::TestDriver::m_tokens
private

Definition at line 46 of file PersistencySvc_Functionality/TestDriver.h.


The documentation for this class was generated from the following files: