Class Alias

class Alias : public Reference::Able

Stores keyword-value pairs.

The Alias class is essentially a wrapper around the std::map

Public Functions

void add(const std::string &alias, const std::string &name)

Add an alias.

std::string get_name(const std::string &alias) const

Given an alias, return the name.

std::string substitute(const std::string &alias) const

Given a word that may be an alias, return the associated name or the word.

std::string get_alias(const std::string &name) const

Given a name, return the alias.