GEOS
|
#include "common/format/StringUtilities.hpp"
#include "common/DataTypes.hpp"
#include "common/logger/Logger.hpp"
#include "common/format/Format.hpp"
#include <iostream>
#include <type_traits>
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | geos::EnumStrings< ENUM > |
Provides enum <-> string conversion facilities. More... | |
Namespaces | |
geos | |
Macros | |
#define | ENUM_STRINGS(ENUM, ...) |
Associate a list of string names with enumeration values. More... | |
Collection of utilities to facilitate I/O of enumeration types. Provides a macro definition that allows associating string names with enumeration constants and a set of functions that make use of these strings, like stream insertion/extraction operators.
Definition in file EnumStrings.hpp.
#define ENUM_STRINGS | ( | ENUM, | |
... | |||
) |
Associate a list of string names with enumeration values.
ENUM | the enumeration type |
... | list of names (C-string literals) |
Conditions (not enforced but won't work correctly if violated):
After the macro has been called, template instantiation EnumStrings<ENUM> may be used to get access to strings at runtime. While not strictly necessary, it is recommended that macro call immediately follows the enum definition (or the class definition, if enum is defined inside a class).
enum struct VTKOutputMode { BINARY, ASCII }; ENUM_STRINGS( VTKOutputMode, "binary", "ascii" );
Definition at line 79 of file EnumStrings.hpp.