47 #ifndef _MIRA_NAMEREGISTRY_H_ 48 #define _MIRA_NAMEREGISTRY_H_ 53 #include <boost/algorithm/string.hpp> 70 typedef std::map<ResourceName, std::pair<ResourceName, std::string>>
AliasMap;
75 template<
typename Reflector>
78 r.interface(
"INameRegistry");
80 "Query aliases ('using' declarations)");
88 const ResourceName& ns,
const std::string& annotation =
"");
ResourceName resolve(const ResourceName &name, const ResourceName &ns) const
Resolves the specified name within the specified namespace and returns the fully qualified global nam...
void reflect(Reflector &r)
Reflect method for serialization.
Definition: NameRegistry.h:76
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Stores aliases for namespaces and allows to resolve local names to global fully qualified names...
Definition: NameRegistry.h:66
Class for resolving and managing names and namespaces.
Class for storing/combining/managing resource names consisting of namespaces and names separated by '...
Definition: ResourceName.h:67
const AliasMap & getAliases() const
Query list of aliases.
std::map< ResourceName, std::pair< ResourceName, std::string > > AliasMap
Definition: NameRegistry.h:70
void addAlias(const ResourceName &from, const ResourceName &to, const ResourceName &ns, const std::string &annotation="")
Sets an alias that is valid for the whole namespace that is specified.