mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-24 12:50:42 +02:00
33 lines
714 B
C++
33 lines
714 B
C++
#include <iostream>
|
|
#include "RestApi.hpp"
|
|
#include "ProcessManager.hpp"
|
|
|
|
|
|
using namespace std;
|
|
|
|
ProcessManager::ProcessManager(
|
|
H5WriteModule& write_module,
|
|
ZmqRecvModule& recv_module) :
|
|
write_module_(write_module),
|
|
recv_module_(recv_module)
|
|
{
|
|
}
|
|
|
|
|
|
void ProcessManager::start_rest_api(const uint16_t rest_port)
|
|
{
|
|
RestApi::start_rest_api(*this, rest_port);
|
|
|
|
// In case SIGINT stopped the rest_api.
|
|
// writer_manager.stop();
|
|
|
|
|
|
#ifdef DEBUG_OUTPUT
|
|
using namespace date;
|
|
using namespace chrono;
|
|
cout << "[" << system_clock::now() << "]";
|
|
cout << "[ProcessManager::start]";
|
|
cout << " Server stopped." << endl;
|
|
#endif
|
|
}
|