ATLAS Offline Software
Loading...
Searching...
No Matches
ITechFactory Class Referenceabstract

More...

#include <ITechFactory.h>

Inheritance diagram for ITechFactory:
Collaboration diagram for ITechFactory:

Public Member Functions

virtual ~ITechFactory ()=default
virtual const std::string & name () const =0
 Name of the Database implementation.
virtual ITechDomain * createDomain (void)=0
 Create Database domain.
virtual ITechDatabase * createDatabase (void)=0
 Create Database.
virtual ITechContainer * createContainer (const std::string &name, const DbType &typ)=0
 Create Database container.
void release ()
 delete object if ref count drops to 0
int addRef ()
 Increase the reference count.
int subRef ()
 Decrease the reference count.

Private Attributes

int m_count = 1

Detailed Description

The ITechFactory interface allows to:

Author
Markus Frank

Definition at line 27 of file ITechFactory.h.

Constructor & Destructor Documentation

◆ ~ITechFactory()

virtual ITechFactory::~ITechFactory ( )
virtualdefault

Member Function Documentation

◆ addRef()

int RefCounter::addRef ( )
inlineinherited

Increase the reference count.

Definition at line 54 of file Database/APR/StorageSvc/StorageSvc/pool.h.

◆ createContainer()

virtual ITechContainer * ITechFactory::createContainer ( const std::string & name,
const DbType & typ )
pure virtual

Create Database container.

Implemented in RootTechFactory.

◆ createDatabase()

virtual ITechDatabase * ITechFactory::createDatabase ( void )
pure virtual

Create Database.

Implemented in RootTechFactory.

◆ createDomain()

virtual ITechDomain * ITechFactory::createDomain ( void )
pure virtual

Create Database domain.

Implemented in RootTechFactory.

◆ name()

virtual const std::string & ITechFactory::name ( ) const
pure virtual

Name of the Database implementation.

Implemented in RootTechFactory.

◆ release()

void ITechFactory::release ( )
inline

delete object if ref count drops to 0

Definition at line 43 of file ITechFactory.h.

43{ if( RefCounter::subRef() <= 0 ) delete this; }
int subRef()
Decrease the reference count.

◆ subRef()

int RefCounter::subRef ( )
inlineinherited

Decrease the reference count.

Definition at line 56 of file Database/APR/StorageSvc/StorageSvc/pool.h.

56{ return --m_count; }

Member Data Documentation

◆ m_count

int RefCounter::m_count = 1
privateinherited

Definition at line 47 of file Database/APR/StorageSvc/StorageSvc/pool.h.


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