libzypp  13.10.6
NamedValue< _Tp > Class Reference

Simple value<>name mapping supporting aliases. More...

#include <NamedValue.h>

Detailed Description

Simple value<>name mapping supporting aliases.

* enum Commands {
* CMD_1,
* CMD_2
* };
* NamedValue<Commands> clist;
* // Value | Name | Alias...
* clist( CMD_1 ) | "cmd1";
* clist( CMD_2 ) | "cmd2" | "second";
*
* std::string name( clist.getName( CMD_1 ) );
* Commands cmd( clist.getValue( "second" ) );
*

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