GEOSX
|
#include "codingUtilities/StringUtilities.hpp"
#include "common/DataTypes.hpp"
#include "common/Logger.hpp"
#include <iostream>
#include <sstream>
#include <array>
#include <type_traits>
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | geosx::EnumStrings< ENUM > |
Provides enum <-> string conversion facilities. More... | |
Namespaces | |
geosx | |
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).
Definition at line 69 of file EnumStrings.hpp.