ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <iostream>
7
8void 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
18std::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
26bool AliasStore::IsAliased(const std::string& tag)
27{
28 if (this->find(tag)!=this->end())
29 return true;
30 return false;
31}
void AddAlias(const std::string &, const std::string &)
Definition AliasStore.cxx:8
std::string Alias(const std::string &)
bool IsAliased(const std::string &)
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138