ATLAS Offline Software
Loading...
Searching...
No Matches
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
16class MsgStream;
17class IOVDbParser;
18class IClassIDSvc;
19
20namespace IOVDbNamespace {
21
22// Resolved address-construction fields for a folder.
24 std::string key;
25 bool named{false};
26 std::string addrheader;
27 std::string typeName;
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.
36bool 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
uint32_t CLID
The Class ID type.
bool resolveFolderAddress(MsgStream &log, const IOVDbParser &parsedDescription, const std::string &folderName, bool jokey, const std::string &currentKey, IClassIDSvc *clidSvc, FolderAddressSpec &result)
std::string addrheader
Address header string from the description. Empty if it has none.
bool named
Folder has named channels.
std::string typeName
Primary type name, read from the description.
std::string key
SG key (unchanged unless the description overrides it).
CLID clid
CLID, read from the description or resolved via IClassIDSvc.