28 #ifndef ROSCPP_NAMES_H 29 #define ROSCPP_NAMES_H 46 ROSCPP_DECL std::string
clean(
const std::string& name);
56 ROSCPP_DECL std::string
resolve(
const std::string& name,
bool remap =
true);
67 ROSCPP_DECL std::string
resolve(
const std::string& ns,
const std::string& name,
bool remap =
true);
71 ROSCPP_DECL std::string
append(
const std::string& left,
const std::string& right);
76 ROSCPP_DECL std::string
remap(
const std::string& name);
80 ROSCPP_DECL
bool validate(
const std::string& name, std::string& error);
96 #endif // ROSCPP_NAMES_H ROSCPP_DECL std::string parentNamespace(const std::string &name)
Get the parent namespace of a name.
ROSCPP_DECL bool validate(const std::string &name, std::string &error)
Validate a name against the name spec.
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
Resolve a graph resource name into a fully qualified graph resource name.
ROSCPP_DECL std::string clean(const std::string &name)
Cleans a graph resource name: removes double slashes, trailing slash.
ROSCPP_DECL const M_string & getRemappings()
std::map< std::string, std::string > M_string
ROSCPP_DECL std::string remap(const std::string &name)
Apply remappings to a name.
ROSCPP_DECL const M_string & getUnresolvedRemappings()
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
Append one name to another.