ATLAS Offline Software
Loading...
Searching...
No Matches
DbSelect.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5//====================================================================
6// $Id: DbSelect.h 726071 2016-02-25 09:23:05Z krasznaa $
7//
8// Package : pool/StorageSvc (The pool framework)
9//
10// @author M.Frank
11//
12//====================================================================
13// $Header: /cvs/PF/pool/StorageSvc/StorageSvc/DbSelect.h,v 1.9 2007/11/20 16:43:06 frankb Exp $
14#ifndef POOL_DBSELECT_H
15#define POOL_DBSELECT_H
16
17// Framework include files
19#include "StorageSvc/DbStatus.h"
20
21// C++ include files
22#include <string>
23
24/*
25 * POOL namespace declaration
26 */
27namespace pool {
28
29 // Forward declaration
30 class DbSelectContext;
31 class DbDatabase;
32 class DbContainer;
33
43 class DbSelect {
44 private:
46 DbSelectContext* m_context;
48 DbSelect(const DbSelect&) = delete;
49 DbSelect& operator= (const DbSelect&) = delete;
50 public:
54 virtual ~DbSelect();
60 void setDatabase(const DbDatabase& dbcH);
66 const Guid& shapeID() const;
68 void setShapeID(const Guid& id);
70 DbStatus start(DbDatabase& dbH, const std::string& cntName);
72 DbStatus next(Token*& refpToken);
73 };
74} // End namespace pool
75#endif // POOL_DBSELECT_H
This file contains the class definition for the Token class (migrated from POOL).
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Definition DbContainer.h:48
Description: Handle managing a DbDatabaseObj, a generic Database object.
Definition DbDatabase.h:53
DbSelect()
Constructor.
DbContainer & container() const
Access referring container context.
void setDatabase(const DbDatabase &dbcH)
Set database context.
DbStatus next(Token *&refpToken)
Access the next token of a sequence.
virtual ~DbSelect()
Standard destructor.
void setShapeID(const Guid &id)
Set shape ID.
DbSelectContext * m_context
Pointer with database context.
Definition DbSelect.h:46
DbSelect & operator=(const DbSelect &)=delete
DbStatus start(DbDatabase &dbH, const std::string &cntName)
Start selective iterator over a container in a database.
DbDatabase & database() const
Access referring database context.
void setContainer(DbContainer &cntH)
Set container context.
DbSelect(const DbSelect &)=delete
No copy constructor.
Token::OID_t & link() const
Access to link handle.
const Guid & shapeID() const
Access shape ID.
This class is highly inspired by the error code distribution system as it is used in DEC/VMS or MS/WN...
Definition DbStatus.h:64
pool namespace
Definition libname.h:15