ATLAS Offline Software
Loading...
Searching...
No Matches
DbDomainObj.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5//====================================================================
6// DbDomainObj object definition
7//--------------------------------------------------------------------
8//
9// Package : StorageSvc (The POOL project)
10// @author M.Frank
11//====================================================================
12#ifndef POOL_DBDOMAINOBJ_H
13#define POOL_DBDOMAINOBJ_H 1
14
15// Framework include files
18#include "POOLCore/DbPrint.h"
19
20/*
21 * POOL namespace declaration
22 */
23namespace pool {
24
25 // Forward declarations
26 class IOODatabase;
27 class DbDatabaseObj;
28 class DbOption;
29 class IDbDomain;
30
40 class DbDomainObj : public DbAccessObj<std::string, DbDatabaseObj >, public APRMessaging {
41 private:
46 public:
50 virtual ~DbDomainObj();
52 IDbDomain* info() { return m_info; }
53 const IDbDomain* info() const { return m_info; }
55 void setAgeLimit(int value) { m_maxAge = value; }
57 int ageLimit() const { return m_maxAge; }
59 bool existsDbase(const std::string& nam);
61 StatusCode open(DbAccessMode mode);
63 StatusCode open();
65 StatusCode close();
67 StatusCode ageOpenDbs();
69 StatusCode closeAgedDbs();
71
75 StatusCode setOption(const DbOption& refOpt);
77
81 StatusCode getOption(DbOption& refOpt) const;
82 };
83} // End namespace pool
84#endif // POOL_DBDOMAINOBJ_H
This file contains the class definition for the Token class (migrated from POOL).
APRMessaging(const std::string &name)
DbAccessObj(const std::string &n, DbAccessMode m, const DbType &t, IOODatabase *s=0)
Definition DbAccessObj.h:70
bool existsDbase(const std::string &nam)
Check for Database existence within domain.
StatusCode open()
Open domain in default access mode.
StatusCode setOption(const DbOption &refOpt)
Set domain specific options.
IDbDomain * info()
Access to technology dependent implementation.
Definition DbDomainObj.h:52
DbDomainObj(IOODatabase *imp, const DbType &typ, DbAccessMode mode=pool::READ)
Constructor.
IDbDomain * m_info
Technology dependent stuff.
Definition DbDomainObj.h:45
StatusCode open(DbAccessMode mode)
Open domain with possible change of access mode.
virtual ~DbDomainObj()
Standard destructor.
StatusCode close()
Close domain.
int ageLimit() const
Access the maximal age limit.
Definition DbDomainObj.h:57
StatusCode ageOpenDbs()
Increase the age of all open databases.
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
Definition DbDomainObj.h:55
StatusCode closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
int m_maxAge
Maximal age of files allowed.
Definition DbDomainObj.h:43
StatusCode getOption(DbOption &refOpt) const
Access domain specific options.
const IDbDomain * info() const
Definition DbDomainObj.h:53
Description: Definition an option to be supplied to database objects.
Definition DbOption.h:37
IDbDomain interface.
Definition IDbDomain.h:42
pool namespace
Definition libname.h:15