#include <iterator>
#include <string>
#include <vector>
#include <algorithm>
#include <gz/common/Export.hh>
#include <gz/common/Util.hh>
Go to the source code of this file.
|
| namespace | gz |
| | Forward declarations for the common classes.
|
| |
| namespace | gz::common |
| |
|
| #define | GZ_ENUM(name, enumType, begin, end, ...) static auto name = gzEnum(begin, end, {__VA_ARGS__}); |
| | A macro that allows an enum to have an iterator and string conversion.
|
| |
◆ GZ_ENUM
| #define GZ_ENUM |
( |
|
name, |
|
|
|
enumType, |
|
|
|
begin, |
|
|
|
end, |
|
|
|
... |
|
) |
| static auto name = gzEnum(begin, end, {__VA_ARGS__}); |
A macro that allows an enum to have an iterator and string conversion.
- Parameters
-
| [in] | name | EnumIface instance name. |
| [in] | enumType | Enum type |
| [in] | begin | Enum value that marks the beginning of the enum values. |
| [in] | end | Enum value that marks the end of the enum values. |
| [in] | ... | A list of strings, one for each enum value. |
- See also
- EnumIface
-
EnumIterator