ATLAS Offline Software
Loading...
Searching...
No Matches
Container.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INCLUDE_PERSISTENCYSVC_CONTAINER_H
6#define INCLUDE_PERSISTENCYSVC_CONTAINER_H
7
8// includes
11
12namespace pool {
13
14 // forward declarations
15 class FileDescriptor;
16
17 namespace PersistencySvc {
18
24
25 class Container : virtual public IContainer,
26 virtual public ITechnologySpecificAttributes {
27 public:
28 Container( FileDescriptor& fileDescriptor,
29 long technology,
30 const std::string& name );
31
34
36 virtual const std::string& parentDatabaseName() const override;
37
39 virtual long technology() const override;
40
44 virtual ITokenIterator* tokens() override;
45
49
50 protected:
52 virtual
53 bool attributeOfType( const std::string& attributeName,
54 void* data,
55 const std::type_info& typeInfo,
56 const std::string& option ) override;
57
59 virtual
60 bool setAttributeOfType( const std::string& attributeName,
61 const void* data,
62 const std::type_info& typeInfo,
63 const std::string& option ) override;
64
65 private:
68
71 };
72 }
73}
74
75#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
IContainer(const std::string &name)
Constructor initializing its name.
const std::string & name() const
Returns the name of this container.
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes.
ITokenIterator is the interface class for iterators of tokens.
Container(FileDescriptor &fileDescriptor, long technology, const std::string &name)
FileDescriptor & m_fileDescriptor
Reference to file descriptor of the parent database.
Definition Container.h:67
virtual long technology() const override
Returns the technology identifier for this container.
virtual ITokenIterator * tokens() override
Starts an iteration over the tokens in the container.
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method returning the attribute data given a name.
virtual const std::string & parentDatabaseName() const override
Returns the name (fid) of the parent database.
virtual ITechnologySpecificAttributes & technologySpecificAttributes() override
long m_technology
The technology identifier.
Definition Container.h:70
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method setting the attribute data given a name.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes() const override
Returns the object holding the technology specific attributes for a given technology domain.
A concrete implementation of the IPersistencySvc interface.
pool namespace
Definition libname.h:15