ATLAS Offline Software
Loading...
Searching...
No Matches
RootTechFactory Class Reference

Factory for creating domains, databases and containers implemented using ROOT technologies (TFile, TTree, TKey and RNTuple). More...

#include <src/RootTechFactory.h>

Inheritance diagram for RootTechFactory:
Collaboration diagram for RootTechFactory:

Public Types

typedef Gaudi::PluginService::Factory< ITechFactory *()> Factory

Public Member Functions

 RootTechFactory (DbType typ=pool::ROOT_StorageType)
 Standard Constructor.
virtual const std::string & name () const
 Name of the Database implementation.
ITechDomain * createDomain ()
 Create Root Domain object.
ITechDatabase * createDatabase ()
 Create Root Database object (TFile).
ITechContainer * createContainer (const std::string &name, const DbType &typ)
 Create Root Container object.
void release ()
 delete object if ref count drops to 0
int addRef ()
 Increase the reference count.
int subRef ()
 Decrease the reference count.

Static Public Member Functions

static const char * catalogLabel ()
 Label of the specific class.

Private Attributes

ITechDomain * m_domainCache {}
 Non-owning cache for the domain pointer.
int m_count = 1

Detailed Description

Factory for creating domains, databases and containers implemented using ROOT technologies (TFile, TTree, TKey and RNTuple).

Author
: M.Frank

Definition at line 20 of file RootTechFactory.h.

Member Typedef Documentation

◆ Factory

typedef Gaudi::PluginService::Factory<ITechFactory*()> RootTechFactory::Factory

Definition at line 22 of file RootTechFactory.h.

Constructor & Destructor Documentation

◆ RootTechFactory()

RootTechFactory::RootTechFactory ( DbType typ = pool::ROOT_StorageType)
explicit

Standard Constructor.

Member Function Documentation

◆ addRef()

int RefCounter::addRef ( )
inlineinherited

Increase the reference count.

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

◆ catalogLabel()

const char * RootTechFactory::catalogLabel ( )
inlinestatic

Label of the specific class.

Definition at line 31 of file RootTechFactory.h.

31{ return "ROOT_All"; }

◆ createContainer()

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

Create Root Container object.

Implements ITechFactory.

◆ createDatabase()

ITechDatabase * RootTechFactory::createDatabase ( )
virtual

Create Root Database object (TFile).

Implements ITechFactory.

◆ createDomain()

ITechDomain * RootTechFactory::createDomain ( )
virtual

Create Root Domain object.

Implements ITechFactory.

◆ name()

virtual const std::string & RootTechFactory::name ( ) const
virtual

Name of the Database implementation.

Implements ITechFactory.

◆ release()

void ITechFactory::release ( )
inlineinherited

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.

◆ m_domainCache

ITechDomain* RootTechFactory::m_domainCache {}
private

Non-owning cache for the domain pointer.

Definition at line 41 of file RootTechFactory.h.

41{};

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