diff --git a/gobotrpc/generator/main.py b/gobotrpc/generator/main.py index a400bbe..c77f23b 100644 --- a/gobotrpc/generator/main.py +++ b/gobotrpc/generator/main.py @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c130c0c1892f8d81aec7f508fc407a45d79384df9f2beffffd5b9819b9b8b4b5 -size 232 +oid sha256:6ebbd1cf8eec314f9a8375a0b1307a03cdb2634ae329aed6abde29e9b1ace653 +size 799 diff --git a/gobotrpc/generator/src/__init__.py b/gobotrpc/generator/src/__init__.py index c763ff4..2fec1c9 100644 --- a/gobotrpc/generator/src/__init__.py +++ b/gobotrpc/generator/src/__init__.py @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b95c8518ae22594b4c0938c539ce3529126b1fa0db8fd29a93c6134c419c5c20 -size 2714 +oid sha256:cd9b5dd72e86767a2f6ead538996659f027e35b96cf8d7a5189e80dc3b78b1ef +size 3927 diff --git a/gobotrpc/generator/src/backend/cpp.py b/gobotrpc/generator/src/backend/cpp.py new file mode 100644 index 0000000..a321a07 --- /dev/null +++ b/gobotrpc/generator/src/backend/cpp.py @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7819cae611d43c982745c14d253bfa9e0352ed2f82cff48779ededa483cab4d3 +size 1221 diff --git a/gobotrpc/generator/src/util.py b/gobotrpc/generator/src/util.py new file mode 100644 index 0000000..0503736 --- /dev/null +++ b/gobotrpc/generator/src/util.py @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10bb3e8a96d23649938b2c4ee93910011746200d9b9d72a7bc7852f2da599e5f +size 111 diff --git a/gobotrpc/generator/templates/enum_template.hpp.j2 b/gobotrpc/generator/templates/enum_template.hpp.j2 new file mode 100644 index 0000000..a2e66a8 --- /dev/null +++ b/gobotrpc/generator/templates/enum_template.hpp.j2 @@ -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 %} \ No newline at end of file diff --git a/gobotrpc/out/cpp/include/gobotrpc_enums.hpp b/gobotrpc/out/cpp/include/gobotrpc_enums.hpp new file mode 100644 index 0000000..030da76 --- /dev/null +++ b/gobotrpc/out/cpp/include/gobotrpc_enums.hpp @@ -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, +}; + diff --git a/gobotrpc/requirements.txt b/gobotrpc/requirements.txt new file mode 100644 index 0000000..bcc2fe1 --- /dev/null +++ b/gobotrpc/requirements.txt @@ -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