ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
RootStorageSvc
src
RootTechFactory.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ROOTSTORAGESVC_RootTechFactory_H
5
#define ROOTSTORAGESVC_RootTechFactory_H 1
6
7
// Framework include files
8
#include "
StorageSvc/ITechFactory.h
"
9
#include "
StorageSvc/DbType.h
"
10
11
#include "Gaudi/PluginService.h"
12
20
class
RootTechFactory
:
public
ITechFactory
{
21
public
:
22
typedef
Gaudi::PluginService::Factory<
ITechFactory
*()>
Factory
;
23
25
explicit
RootTechFactory
(
DbType
typ=
pool::ROOT_StorageType
);
26
28
virtual
const
std::string&
name
()
const
;
29
31
static
const
char
*
catalogLabel
() {
return
"ROOT_All"
; }
32
34
ITechDomain
*
createDomain
();
36
ITechDatabase
*
createDatabase
();
38
ITechContainer
*
createContainer
(
const
std::string&
name
,
const
DbType
& typ);
39
private
:
41
ITechDomain
*
m_domainCache
{};
42
};
43
44
class
RootKeyStorageFactory
:
public
RootTechFactory
{
45
public
:
47
RootKeyStorageFactory
() :
RootTechFactory
(
pool
::ROOTKEY_StorageType) { }
49
static
const
char
*
catalogLabel
() {
return
"ROOT_Key"
; }
50
};
51
52
class
RootTreeStorageFactory
:
public
RootTechFactory
{
53
public
:
55
RootTreeStorageFactory
() :
RootTechFactory
(
pool
::ROOTTREE_StorageType) { }
57
static
const
char
*
catalogLabel
() {
return
"ROOT_Tree"
; }
58
};
59
60
class
RootTreeIdxStorageFactory
:
public
RootTechFactory
{
61
public
:
63
RootTreeIdxStorageFactory
() :
RootTechFactory
(
pool
::ROOTTREEINDEX_StorageType) { }
65
static
const
char
*
catalogLabel
() {
return
"ROOT_Tree"
; }
66
};
67
68
class
RootRNTupleStorageFactory
:
public
RootTechFactory
{
69
public
:
71
RootRNTupleStorageFactory
() :
RootTechFactory
(
pool
::ROOTRNTUPLE_StorageType) { }
73
static
const
char
*
catalogLabel
() {
return
"ROOT_RNTuple"
; }
74
};
75
76
#endif
DbType.h
ITechFactory.h
DbType
Keeps information about storage technology.
Definition
DbType.h:15
ITechContainer
Description: Interface to the technology specific implementation of the Container object.
Definition
ITechContainer.h:29
ITechDatabase
Description: Interface to the technology specific implementation of a Database object.
Definition
ITechDatabase.h:24
ITechDomain
Definition
ITechDomain.h:23
ITechFactory
Definition
ITechFactory.h:27
RootKeyStorageFactory::RootKeyStorageFactory
RootKeyStorageFactory()
Standard Constructor.
Definition
RootTechFactory.h:47
RootKeyStorageFactory::catalogLabel
static const char * catalogLabel()
Label of the specific class.
Definition
RootTechFactory.h:49
RootRNTupleStorageFactory::RootRNTupleStorageFactory
RootRNTupleStorageFactory()
Standard Constructor.
Definition
RootTechFactory.h:71
RootRNTupleStorageFactory::catalogLabel
static const char * catalogLabel()
Label of the specific class.
Definition
RootTechFactory.h:73
RootTechFactory::createContainer
ITechContainer * createContainer(const std::string &name, const DbType &typ)
Create Root Container object.
RootTechFactory::createDomain
ITechDomain * createDomain()
Create Root Domain object.
RootTechFactory::catalogLabel
static const char * catalogLabel()
Label of the specific class.
Definition
RootTechFactory.h:31
RootTechFactory::m_domainCache
ITechDomain * m_domainCache
Non-owning cache for the domain pointer.
Definition
RootTechFactory.h:41
RootTechFactory::Factory
Gaudi::PluginService::Factory< ITechFactory *()> Factory
Definition
RootTechFactory.h:22
RootTechFactory::createDatabase
ITechDatabase * createDatabase()
Create Root Database object (TFile).
RootTechFactory::RootTechFactory
RootTechFactory(DbType typ=pool::ROOT_StorageType)
Standard Constructor.
RootTechFactory::name
virtual const std::string & name() const
Name of the Database implementation.
RootTreeIdxStorageFactory::RootTreeIdxStorageFactory
RootTreeIdxStorageFactory()
Standard Constructor.
Definition
RootTechFactory.h:63
RootTreeIdxStorageFactory::catalogLabel
static const char * catalogLabel()
Label of the specific class.
Definition
RootTechFactory.h:65
RootTreeStorageFactory::catalogLabel
static const char * catalogLabel()
Label of the specific class.
Definition
RootTechFactory.h:57
RootTreeStorageFactory::RootTreeStorageFactory
RootTreeStorageFactory()
Standard Constructor.
Definition
RootTechFactory.h:55
pool
Definition
DbType.h:67
pool::ROOT_StorageType
static const DbType ROOT_StorageType
Definition
DbType.h:72
Generated on
for ATLAS Offline Software by
1.17.0