26#ifndef SIM_TO_DUT_INTERFACE_RECEIVEENDPOINT_H
27#define SIM_TO_DUT_INTERFACE_RECEIVEENDPOINT_H
30#include <corvusoft/restbed/resource.hpp>
31#include <corvusoft/restbed/service.hpp>
33#include "../../Events/SimEvent.h"
64 static SimEvent JsonToSimEvent(
const std::string &json);
69 std::function<void(
const SimEvent &)> eventToSimCallback;
Event object used to communicate between simulation and DuTs.
Definition: SimEvent.h:47
restbed REST resource describing the methods and paths the endpoint can process
Definition: ReceiveEndpoint.h:41
ReceiveApiResource(std::function< void(const SimEvent &)> function)
Definition: ReceiveEndpoint.cpp:53
void PUT_method_handler(const std::shared_ptr< restbed::Session > &session)
Definition: ReceiveEndpoint.cpp:59
restbed REST endpoint offering methods and paths described in
Definition: ReceiveEndpoint.h:77
void stopService()
Definition: ReceiveEndpoint.cpp:49
void startService(int const &port, std::function< void(const SimEvent &)> function)
Definition: ReceiveEndpoint.cpp:37
std::shared_ptr< ReceiveApiResource > m_spReceiveApiResource
Definition: ReceiveEndpoint.h:95
Definition: ReceiveEndpoint.cpp:36