Started implementing cpp
generation
This commit is contained in:
BIN
gobotrpc/generator/main.py
(Stored with Git LFS)
BIN
gobotrpc/generator/main.py
(Stored with Git LFS)
Binary file not shown.
BIN
gobotrpc/generator/src/__init__.py
(Stored with Git LFS)
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
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
BIN
gobotrpc/generator/src/util.py
(Stored with Git LFS)
Normal file
Binary file not shown.
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 %}
|
||||||
33
gobotrpc/out/cpp/include/gobotrpc_enums.hpp
Normal file
33
gobotrpc/out/cpp/include/gobotrpc_enums.hpp
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#pragma once
|
||||||
|
/**
|
||||||
|
* This Header file was auto-generated by the GobotRPC-Protocol-Generator-Tool
|
||||||
|
*/
|
||||||
|
|
||||||
|
enum class GOBOTRPC_ENUM_NodeType {
|
||||||
|
GOBOTRPC_ENUM_kHub = 0,
|
||||||
|
GOBOTRPC_ENUM_kHead = 1,
|
||||||
|
GOBOTRPC_ENUM_kCorexy = 2,
|
||||||
|
GOBOTRPC_ENUM_kVacun = 3,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum class GOBOTRPC_ENUM_NodeStatus {
|
||||||
|
GOBOTRPC_ENUM_kReady = 0,
|
||||||
|
GOBOTRPC_ENUM_kWorking = 1,
|
||||||
|
GOBOTRPC_ENUM_kBusy = 2,
|
||||||
|
GOBOTRPC_ENUM_kError = 3,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum class GOBOTRPC_ENUM_ErrorCode {
|
||||||
|
};
|
||||||
|
|
||||||
|
enum class GOBOTRPC_ENUM_HeadPos {
|
||||||
|
GOBOTRPC_ENUM_kUp = 0,
|
||||||
|
GOBOTRPC_ENUM_kDown = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum class GOBOTRPC_ENUM_StoneStatus {
|
||||||
|
GOBOTRPC_ENUM_kEmpty = 0,
|
||||||
|
GOBOTRPC_ENUM_kLow = 1,
|
||||||
|
GOBOTRPC_ENUM_kFill = 2,
|
||||||
|
};
|
||||||
|
|
||||||
19
gobotrpc/requirements.txt
Normal file
19
gobotrpc/requirements.txt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Bottleneck @ file:///croot/bottleneck_1731058641041/work
|
||||||
|
defusedxml==0.7.1
|
||||||
|
ezodf==0.3.2
|
||||||
|
Jinja2==3.1.5
|
||||||
|
lxml==5.3.0
|
||||||
|
MarkupSafe==3.0.2
|
||||||
|
mkl-service==2.4.0
|
||||||
|
mkl_fft @ file:///io/mkl313/mkl_fft_1730824109137/work
|
||||||
|
mkl_random @ file:///io/mkl313/mkl_random_1730823916628/work
|
||||||
|
numexpr @ file:///croot/numexpr_1730215937391/work
|
||||||
|
numpy @ file:///croot/numpy_and_numpy_base_1725470312869/work/dist/numpy-2.0.1-cp312-cp312-linux_x86_64.whl#sha256=e2374991344fa2241a2153ef3d550d3a1cd2d50cb1f1d51eddc82870abc88021
|
||||||
|
odfpy==1.4.1
|
||||||
|
pandas @ file:///croot/pandas_1732735089971/work/dist/pandas-2.2.3-cp312-cp312-linux_x86_64.whl#sha256=57b66702d418720ec8483f7c4ec7c08d41815316ad7ce09d5b7bbc34eefcfdfd
|
||||||
|
python-dateutil @ file:///croot/python-dateutil_1716495738603/work
|
||||||
|
pytz @ file:///croot/pytz_1713974312559/work
|
||||||
|
setuptools==75.1.0
|
||||||
|
six @ file:///tmp/build/80754af9/six_1644875935023/work
|
||||||
|
tzdata @ file:///croot/python-tzdata_1690578112552/work
|
||||||
|
wheel==0.44.0
|
||||||
Reference in New Issue
Block a user