#include "UDPClient/UDPClient.h" #include "DetectorModule/DetectorModule.h" #include "Detector/Detector.h" #include #include #include #include #include void initLog() { #ifndef NDEBUG boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::debug); #else boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info); #endif } int main (int argc, char *argv[]){ initLog(); std::cout << "Sending UDP packages: " << std::endl; auto configPath = std::string { "config.cfg" }; std::string address = "127.0.0.1"; Detector detector{address, configPath, 1000000u}; //DetectorModule detModule0 = DetectorModule(1, address, configPath); detector.run(); std::cin.ignore(); return 0; }