Started implementing cpp

generation
This commit is contained in:
AlexanderHD27
2025-01-12 15:57:29 +01:00
parent 33e7f4afac
commit 346e6a52b7
7 changed files with 74 additions and 4 deletions

BIN
gobotrpc/generator/main.py (Stored with Git LFS)

Binary file not shown.

BIN
gobotrpc/generator/src/__init__.py (Stored with Git LFS)

Binary file not shown.

BIN
gobotrpc/generator/src/backend/cpp.py (Stored with Git LFS) Normal file

Binary file not shown.

BIN
gobotrpc/generator/src/util.py (Stored with Git LFS) Normal file

Binary file not shown.

View 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 %}