ATLAS Offline Software
Loading...
Searching...
No Matches
Collection.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#ifndef EVENTSELECTORATHENAPOOL_COLLECTION_H
6#define EVENTSELECTORATHENAPOOL_COLLECTION_H
7
8#include "CoralBase/AttributeList.h"
11#include "StorageSvc/DbPrint.h"
13
14#include <cstddef>
15#include <map>
16#include <string>
17
22class Collection : public APRMessaging {
23
24 public:
26 explicit Collection( FileDescriptor& fileDescr );
27
29 bool next();
30
32 std::size_t size();
33
35 bool seek(std::size_t position);
36
37 const Token& eventRef() const { return m_token; }
38 const coral::AttributeList& attributeList() const { return m_attributeList; }
39
40 private:
41 Collection(const Collection &) = delete;
42 Collection& operator = (const Collection &) = delete;
43
45 std::map<std::string, DbContainer> m_containerMap;
48 coral::AttributeList m_attributeList;
49 std::size_t m_idx;
50};
51
52#endif
This file contains the class definition for the Token class (migrated from POOL).
APRMessaging(const std::string &name)
bool next()
Advances to the next row.
std::map< std::string, DbContainer > m_containerMap
Attribute-name to container mapping for EventTag attributes.
Definition Collection.h:45
Token m_token
Definition Collection.h:47
std::size_t size()
Returns the number of rows without advancing the reader.
const coral::AttributeList & attributeList() const
Definition Collection.h:38
coral::AttributeList m_attributeList
Definition Collection.h:48
bool seek(std::size_t position)
Positions the reader before the requested row; next() reads it.
Collection(const Collection &)=delete
std::size_t m_idx
Definition Collection.h:49
DbContainer m_tokenContainer
Definition Collection.h:46
const Token & eventRef() const
Definition Collection.h:37
Collection(FileDescriptor &fileDescr)
Construct from an already-connected file descriptor.
Collection & operator=(const Collection &)=delete
Description: This class is a handle managing access and lifetime for the Container implementation obj...
Definition DbContainer.h:31
Description:
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22