|
Anklang-0.3.0.dev835+g24d8ae08 anklang-0.3.0.dev835+g24d8ae08
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Registers C++ enum values with string names for JSON serialization and TypeScript binding generation. More...
#include "jsonipc.hh"
Public Types | |
| using | UnderlyingType = typename std::underlying_type< T >::type |
| using | EnumValueS = std::vector< std::pair< int64_t, std::string > > |
Public Member Functions | |
| Enum & | set (T v, const char *valuename) |
Static Public Member Functions | |
| static bool | has_names () |
| static const std::string & | get_name (T v) |
| static T | get_value (const std::string &name, T fallback) |
| static EnumValueS | list_values () |
Registers C++ enum values with string names for JSON serialization and TypeScript binding generation.
Definition at line 1086 of file jsonipc.hh.
| using Jsonipc::Enum< T >::EnumValueS = std::vector<std::pair<int64_t,std::string> > |
Definition at line 1136 of file jsonipc.hh.
| using Jsonipc::Enum< T >::UnderlyingType = typename std::underlying_type<T>::type |
Definition at line 1093 of file jsonipc.hh.
| Jsonipc::Enum< T >::Enum | ( | ) |
Definition at line 1088 of file jsonipc.hh.
|
static |
Definition at line 1112 of file jsonipc.hh.
|
static |
Definition at line 1122 of file jsonipc.hh.
|
static |
Definition at line 1107 of file jsonipc.hh.
|
static |
Definition at line 1138 of file jsonipc.hh.
| Enum & Jsonipc::Enum< T >::set | ( | T | v, |
| const char * | valuename | ||
| ) |
Definition at line 1095 of file jsonipc.hh.