36void G4UIaliasList::AddNewAlias(
const char* aliasName,
const char* aliasValue)
39 G4cerr <<
"Alias <" << aliasName <<
"> already exists. Command ignored." <<
G4endl;
42 aliases.emplace(aliasName, aliasValue);
49 G4cerr <<
"Alias <" << aliasName <<
"> does not exist. Command ignored." <<
G4endl;
52 aliases.erase(aliasName);
59 AddNewAlias(aliasName, aliasValue);
62 aliases[aliasName] = aliasValue;
68 auto it = aliases.find(aliasName);
69 return (it == aliases.end()) ? nullptr : &(it->second);
76 for (
const auto& [a, v] : aliases) {
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
void ChangeAlias(const char *aliasName, const char *aliasValue)
void RemoveAlias(const char *aliasName)
const G4String * FindAlias(const char *aliasName) const