Generate a description functor for addDescriptions() from an EnumStringMap.
More...
#include <command.h>
template<typename Enum>
struct LinkDescription< Enum >
Generate a description functor for addDescriptions() from an EnumStringMap.
- Template Parameters
-
◆ LinkDescription()
- Parameters
-
nameMap | Link between enum members to corresponding name strings |
descMap | Link between enum members to corresponding description strings |
◆ operator()()
Look name up in nameMap, and return the corresponding description in descMap.
- Parameters
-
name | One of the string entries in nameMap |
- Returns
- The corresponding string in descMap
The documentation for this struct was generated from the following file: