ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
IOVDbSvc
src
FolderAddressResolver.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
// FolderAddressResolver.h
6
// Backend-neutral resolution of the address-construction fields (SG key,
7
// named-channel flag, address header, CLID) from a folder's parsed description string
8
9
#ifndef IOVDBSVC_FOLDERADDRESSRESOLVER_H
10
#define IOVDBSVC_FOLDERADDRESSRESOLVER_H
11
12
#include "GaudiKernel/ClassID.h"
13
14
#include <string>
15
16
class
MsgStream;
17
class
IOVDbParser
;
18
class
IClassIDSvc;
19
20
namespace
IOVDbNamespace
{
21
22
// Resolved address-construction fields for a folder.
23
struct
FolderAddressSpec
{
24
std::string
key
;
25
bool
named
{
false
};
26
std::string
addrheader
;
27
std::string
typeName
;
28
CLID
clid
{0};
29
};
30
31
// Fills result from parsedDescription's SG key, named-channel flag, address
32
// header, and CLID. If jokey is true, currentKey is kept and the description's
33
// <key> is ignored. clidSvc may be null: it resolves the CLID only when the
34
// description has none. Returns false, with an ERROR already logged, if
35
// typeName is empty or no CLID resolves.
36
bool
resolveFolderAddress
(MsgStream& log,
37
const
IOVDbParser
& parsedDescription,
38
const
std::string& folderName,
39
bool
jokey,
40
const
std::string& currentKey,
41
IClassIDSvc* clidSvc,
42
FolderAddressSpec& result);
43
44
}
// namespace IOVDbNamespace
45
46
#endif
// IOVDBSVC_FOLDERADDRESSRESOLVER_H
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IOVDbParser
Definition
IOVDbParser.h:19
IOVDbNamespace
Definition
Base64Codec.cxx:16
IOVDbNamespace::resolveFolderAddress
bool resolveFolderAddress(MsgStream &log, const IOVDbParser &parsedDescription, const std::string &folderName, bool jokey, const std::string ¤tKey, IClassIDSvc *clidSvc, FolderAddressSpec &result)
Definition
FolderAddressResolver.cxx:15
IOVDbNamespace::FolderAddressSpec
Definition
FolderAddressResolver.h:23
IOVDbNamespace::FolderAddressSpec::addrheader
std::string addrheader
Address header string from the description. Empty if it has none.
Definition
FolderAddressResolver.h:26
IOVDbNamespace::FolderAddressSpec::named
bool named
Folder has named channels.
Definition
FolderAddressResolver.h:25
IOVDbNamespace::FolderAddressSpec::typeName
std::string typeName
Primary type name, read from the description.
Definition
FolderAddressResolver.h:27
IOVDbNamespace::FolderAddressSpec::key
std::string key
SG key (unchanged unless the description overrides it).
Definition
FolderAddressResolver.h:24
IOVDbNamespace::FolderAddressSpec::clid
CLID clid
CLID, read from the description or resolved via IClassIDSvc.
Definition
FolderAddressResolver.h:28
Generated on
for ATLAS Offline Software by
1.17.0