ATLAS Offline Software
Loading...
Searching...
No Matches
Container.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 POOLSVC_CONTAINER_H
6#define POOLSVC_CONTAINER_H
7
8#include <string>
9#include <typeinfo>
10
11class FileDescriptor;
12class TokenIterator;
13
16
17class Container final {
18public:
19 Container( FileDescriptor& fileDescriptor, const std::string& name );
20
22 ~Container() = default;
23
25 const std::string& name() const { return m_name; }
26
31
33 bool attributeOfType( const std::string& attributeName,
34 void* data,
35 const std::type_info& typeInfo,
36 const std::string& option );
37
39 bool setAttributeOfType( const std::string& attributeName,
40 const void* data,
41 const std::type_info& typeInfo,
42 const std::string& option );
43
44private:
46 std::string m_name;
47
50};
51
52#endif
TokenIterator * tokens()
Starts an iteration over the tokens in the container.
Definition Container.cxx:19
const std::string & name() const
Returns the name of this container.
Definition Container.h:25
~Container()=default
destructor
FileDescriptor & m_fileDescriptor
Reference to file descriptor of the parent database.
Definition Container.h:49
Container(FileDescriptor &fileDescriptor, const std::string &name)
Definition Container.cxx:14
std::string m_name
The name of the container.
Definition Container.h:46
bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)
The method returning the attribute data given a name.
Definition Container.cxx:23
bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)
The method setting the attribute data given a name.
Definition Container.cxx:38
Description: