ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
StorageSvc
StorageSvc
ITechFactory.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef STORAGESVC_TECHFACTORY_H
5
#define STORAGESVC_TECHFACTORY_H
6
7
// Framework include files
8
#include "
StorageSvc/pool.h
"
9
10
// Forward declarations
11
class
ITechDomain
;
12
class
ITechDatabase
;
13
class
ITechContainer
;
14
class
DbType
;
15
27
class
ITechFactory
:
public
RefCounter
{
28
public
:
29
virtual
~ITechFactory
() =
default
;
30
31
public
:
33
virtual
const
std::string&
name
()
const
= 0;
34
36
virtual
ITechDomain
*
createDomain
(
void
) = 0;
38
virtual
ITechDatabase
*
createDatabase
(
void
) = 0;
40
virtual
ITechContainer
*
createContainer
(
const
std::string&
name
,
const
DbType
& typ) = 0;
41
43
void
release
() {
if
(
RefCounter::subRef
() <= 0 )
delete
this
; }
44
};
45
46
47
#endif
pool.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
ITechFactory::name
virtual const std::string & name() const =0
Name of the Database implementation.
ITechFactory::createDomain
virtual ITechDomain * createDomain(void)=0
Create Database domain.
ITechFactory::release
void release()
delete object if ref count drops to 0
Definition
ITechFactory.h:43
ITechFactory::createContainer
virtual ITechContainer * createContainer(const std::string &name, const DbType &typ)=0
Create Database container.
ITechFactory::~ITechFactory
virtual ~ITechFactory()=default
ITechFactory::createDatabase
virtual ITechDatabase * createDatabase(void)=0
Create Database.
RefCounter::RefCounter
RefCounter()
Definition
Database/APR/StorageSvc/StorageSvc/pool.h:49
RefCounter::subRef
int subRef()
Decrease the reference count.
Definition
Database/APR/StorageSvc/StorageSvc/pool.h:56
Generated on
for ATLAS Offline Software by
1.17.0