ATLAS Offline Software
Loading...
Searching...
No Matches
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
11class ITechDomain;
12class ITechDatabase;
13class ITechContainer;
14class DbType;
15
27class 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
Keeps information about storage technology.
Definition DbType.h:15
Description: Interface to the technology specific implementation of the Container object.
Description: Interface to the technology specific implementation of a Database object.
virtual const std::string & name() const =0
Name of the Database implementation.
virtual ITechDomain * createDomain(void)=0
Create Database domain.
void release()
delete object if ref count drops to 0
virtual ITechContainer * createContainer(const std::string &name, const DbType &typ)=0
Create Database container.
virtual ~ITechFactory()=default
virtual ITechDatabase * createDatabase(void)=0
Create Database.
int subRef()
Decrease the reference count.