EnumIface.hh File Reference
#include <string>
#include <vector>
#include <algorithm>
#include "gazebo/common/Assert.hh"

Go to the source code of this file.

Macros

#define GZ_ENUM(enumType, begin, end, ...)
 

Macro Definition Documentation

§ GZ_ENUM

#define GZ_ENUM (   enumType,
  begin,
  end,
  ... 
)
Value:
template<> enumType common::EnumIface<enumType>::range[] = {begin, end}; \
template<> std::vector<std::string> common::EnumIface<enumType>::names = \
{__VA_ARGS__};