Files
App/src/main.cpp
HiepLM 098e1b2b69
Some checks failed
Test / test (push) Has been cancelled
Chuyển lưu trữ dữ liệu sang data base
2026-06-17 11:16:30 +07:00

16 lines
502 B
C++

#include "app/lidar_manager_app.hpp"
#include <cstdlib>
#include <filesystem>
int main(int argc, char** argv)
{
const int port = (argc >= 2) ? std::atoi(argv[1]) : 8080;
const std::filesystem::path www_root = (argc >= 3) ? std::filesystem::path(argv[2]) : std::filesystem::path("www");
const std::filesystem::path data_path =
(argc >= 4) ? std::filesystem::path(argv[3]) : std::filesystem::path("data/RBS.db");
lm::LidarManagerApp app(port, www_root, data_path);
return app.run();
}