gepetto::viewer::MetaEnum Struct Reference

Conversion between integer and enum name at runtime. More...

#include <gepetto/viewer/node-property.h>

Public Member Functions

int from_string (const std::string &s)
 
std::string to_string (const int &v)
 

Public Attributes

std::string type
 
std::vector< std::string > names
 
std::vector< int > values
 

Detailed Description

Conversion between integer and enum name at runtime.

Member Function Documentation

◆ from_string()

int gepetto::viewer::MetaEnum::from_string ( const std::string &  s)

◆ to_string()

std::string gepetto::viewer::MetaEnum::to_string ( const int &  v)

Member Data Documentation

◆ names

std::vector<std::string> gepetto::viewer::MetaEnum::names

◆ type

std::string gepetto::viewer::MetaEnum::type

◆ values

std::vector< int> gepetto::viewer::MetaEnum::values

The documentation for this struct was generated from the following file: