ATLAS Offline Software
Loading...
Searching...
No Matches
TrkExToolsStringUtility.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4
10
11#include <vector>
12#include <string>
13
14namespace TrkExTools{
16 std::string
17 getToolSuffix(const std::string & fullToolName);
18
20 std::vector<std::string>
21 extractToolNames(const std::vector<std::string> & toolNameVector);
22
24 bool
25 validToolName(const std::string & toolName);
26
28 std::string
29 possibleToolNameError(const std::vector<std::string> & toolNameVector);
30
32 unsigned int
33 numberOfUniqueEntries(const std::vector<std::string> & nameVector);
34}
bool validToolName(const std::string &toolName)
indicate whether a string is a valid Tool variable name
std::vector< std::string > extractToolNames(const std::vector< std::string > &toolNameVector)
return a vector of extracted names
std::string getToolSuffix(const std::string &fullToolName)
Return the name suffix, e.g. return 'myNiceTool' from 'ToolSvc.myNiceTool'.
unsigned int numberOfUniqueEntries(const std::vector< std::string > &nameVector)
Give the number of unique entries in a vector.
std::string possibleToolNameError(const std::vector< std::string > &toolNameVector)
Give an error message if tool names are invalid; empty string if good.