message parser

Add magic enum
Add function to parse commands
Add function to parse events
Add function to feed json input to there corresponding parse functions and return there result
This commit is contained in:
2024-08-22 13:57:32 +02:00
parent 45263970fc
commit e12263b8d2
3 changed files with 139 additions and 0 deletions
+8
View File
@@ -1,6 +1,13 @@
add_executable(server)
include(FetchContent)
FetchContent_Declare(magic_enum URL https://github.com/Neargye/magic_enum/releases/download/v0.9.5/magic_enum-v0.9.5.tar.gz)
FetchContent_MakeAvailable(magic_enum)
target_sources(server PRIVATE
${CMAKE_CURRENT_LIST_DIR}/main.cpp
${CMAKE_CURRENT_LIST_DIR}/message_parser.cpp
${CMAKE_CURRENT_LIST_DIR}/simulator_base.cpp
${CMAKE_CURRENT_LIST_DIR}/simulators.cpp
${CMAKE_CURRENT_LIST_DIR}/websocket.cpp
@@ -20,4 +27,5 @@ target_include_directories(server
target_link_libraries(server PRIVATE
UI
Timer
magic_enum::magic_enum
)