|
cgv
|
Helper functions to process enum declarations from strings. More...
#include <vector>#include "token.h"#include "lib_begin.h"#include <cgv/config/lib_end.h>Go to the source code of this file.
Namespaces | |
| namespace | cgv |
| the cgv namespace | |
| namespace | cgv::utils |
| namespace that holds tools that dont fit any other namespace | |
Functions | |
| void | cgv::utils::parse_enum_declarations (const std::string &enum_declarations, std::vector< token > &enum_names, std::vector< int > &enum_values) |
| parse an enum declaration string into names and values | |
| unsigned | cgv::utils::find_enum_index (int value, const std::vector< int > &enum_values) |
| convert value to index | |
| unsigned | cgv::utils::find_enum_index (const std::string &name, const std::vector< token > &enum_names) |
| convert name to index | |
| std::string | cgv::utils::find_enum_name (const std::string &enum_declarations, int value) |
| lookup name of value in enum declaration | |
Helper functions to process enum declarations from strings.
Definition in file scan_enum.h.