Started implementing cpp
generation
This commit is contained in:
12
gobotrpc/generator/templates/enum_template.hpp.j2
Normal file
12
gobotrpc/generator/templates/enum_template.hpp.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
/**
|
||||
* This Header file was auto-generated by the GobotRPC-Protocol-Generator-Tool
|
||||
*/
|
||||
|
||||
{% for enum in enum_list -%}
|
||||
enum class {{ enum.name }} {{ "{" }}
|
||||
{% for key in enum.map -%}
|
||||
{{ "\t" }}{{ key }} = {{ enum.map[key] }},
|
||||
{% endfor %}{{ "}" }};
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user