ConcatID.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace armarx::meta::cfg
6 {
7  inline std::string
8  ConcatID(const std::string& prefix, const std::string& suffix)
9  {
10  static const std::string delim{"_"};
11  return prefix.empty() ? suffix : prefix + delim + suffix;
12  }
13 } // namespace armarx::meta::cfg
armarx::meta::cfg
Definition: PluginCfgStruct.h:31
armarx::meta::cfg::ConcatID
std::string ConcatID(const std::string &prefix, const std::string &suffix)
Definition: ConcatID.h:8