MIRA
Public Types | Public Member Functions | List of all members
NameRegistry Class Reference

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 AliasMapgetAliases () const
 Query list of aliases. More...
 

Detailed Description

Stores aliases for namespaces and allows to resolve local names to global fully qualified names.

Member Typedef Documentation

◆ AliasMap

typedef std::map<ResourceName, std::pair<ResourceName, std::string> > AliasMap

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

Reflect method for serialization.

◆ addAlias()

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.

◆ resolve()

ResourceName resolve ( const ResourceName name,
const ResourceName ns 
) const

Resolves the specified name within the specified namespace and returns the fully qualified global name.

◆ getAliases()

const AliasMap& getAliases ( ) const

Query list of aliases.


The documentation for this class was generated from the following file: