MIRA
|
Stores aliases for namespaces and allows to resolve local names to global fully qualified names. More...
#include <fw/NameRegistry.h>
Public Types | |
typedef std::map< ResourceName, std::pair< ResourceName, std::string > > | AliasMap |
Public Member Functions | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
Reflect method for serialization. More... | |
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. More... | |
ResourceName | resolve (const ResourceName &name, const ResourceName &ns) const |
Resolves the specified name within the specified namespace and returns the fully qualified global name. More... | |
const AliasMap & | getAliases () const |
Query list of aliases. More... | |
Stores aliases for namespaces and allows to resolve local names to global fully qualified names.
typedef std::map<ResourceName, std::pair<ResourceName, std::string> > AliasMap |
|
inline |
Reflect method for serialization.
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.
ResourceName resolve | ( | const ResourceName & | name, |
const ResourceName & | ns | ||
) | const |
Resolves the specified name within the specified namespace and returns the fully qualified global name.
const AliasMap& getAliases | ( | ) | const |
Query list of aliases.