3 #include "cetlib/container_algorithms.h" 10 std::pair<std::string, std::string>
14 auto const pos = path_spec.find(
":");
15 if (pos == std::string::npos) {
16 return std::make_pair(
"", path_spec);
18 return std::make_pair(path_spec.substr(0, pos), path_spec.substr(pos + 1));
24 auto const colon_position = path_spec.find(
":");
25 if (colon_position == std::string::npos) {
28 auto name = path_spec.substr(colon_position + 1);
29 auto const id = std::stoull(path_spec.substr(0, colon_position));
34 path_specs(std::vector<std::string>
const& path_spec_strs)
36 std::vector<PathSpec> result;
37 cet::for_all_with_index(path_spec_strs,
38 [&result](
size_t const i,
auto const& str) {
43 result.push_back(std::move(spec));
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
std::vector< PathSpec > path_specs(std::vector< std::string > const &path_spec_strs)
std::string to_string(PathSpec const &spec)
constexpr static auto invalid() noexcept
void remove_whitespace(std::string &str)
PathSpec path_spec(std::string const &path_spec)
std::string to_string(ModuleType const mt)
std::pair< std::string, std::string > split_process_and_path_names(std::string path_spec)