ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDKernel
src
AliasStore.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDKernel/AliasStore.h
"
6
#include <iostream>
7
8
void
AliasStore::AddAlias
(
const
std::string& tag,
const
std::string& alias)
9
{
10
if
(this->
find
(tag)!=this->end())
11
{
12
std::cout<<
"trying to set existing alias: old value kept"
<<std::endl;
13
}
14
else
15
(*
this
)[tag]=alias;
16
}
17
18
std::string
AliasStore::Alias
(
const
std::string& tag)
19
{
20
if
(this->
find
(tag)!=this->end())
21
return
(*
this
)[tag];
22
else
23
return
tag;
24
}
25
26
bool
AliasStore::IsAliased
(
const
std::string& tag)
27
{
28
if
(this->
find
(tag)!=this->end())
29
return
true
;
30
return
false
;
31
}
AliasStore.h
AliasStore::AddAlias
void AddAlias(const std::string &, const std::string &)
Definition
AliasStore.cxx:8
AliasStore::Alias
std::string Alias(const std::string &)
Definition
AliasStore.cxx:18
AliasStore::IsAliased
bool IsAliased(const std::string &)
Definition
AliasStore.cxx:26
find
std::string find(const std::string &s)
return a remapped string
Definition
hcg.cxx:140
Generated on
for ATLAS Offline Software by
1.17.0