enum with additional functionality. More...
#include <cstring>
#include <iostream>
#include <dai/exceptions.h>
Go to the source code of this file.
Defines | |
| #define | DAI_ENUM(x, val0,...) |
Extends the C++ enum type by supporting input/output streaming and conversion to and from const char* and size_t. | |
enum with additional functionality.
| #define DAI_ENUM | ( | x, | |||
| val0, | |||||
| ... | ) |
Extends the C++ enum type by supporting input/output streaming and conversion to and from const char* and size_t.
For more details see the source code.
DAI_ENUM(colors,RED,GREEN,BLUE)
enum {RED, GREEN, BLUE};
enum keyword.
1.5.5