#include "demo_interface_binding_client_filter.h"
#include <cinttypes>
cInterfaceBindingClientFilter::cInterfaceBindingClientFilter()
{
m_oInterfaceClient = CreateInterfaceClient<IPrintInterface>("printer_client");
SetDescription("printer_client", "Interface client to call a printer function from a server");
SetDescription("trigger", "Runner to periodically trigger the function which prints the timestamp of the trigger");
SetDescription("Use this filter to provide a client which accesses the printer interface from Demo Interface Printer (see Streaming Sources).");
SetHelpLink("$(ADTF_DIR)/doc/html/page_demo_interface_binding_filter.html");
}
tResult cInterfaceBindingClientFilter::Process(tNanoSeconds tmTimeOfTrigger, IRunner * )
{
m_oInterfaceClient->Print(cString::Format("time is %" PRIi64, tmTimeOfTrigger.nCount));
}
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
std::chrono::seconds seconds
Compatibility to C++11 std::chrono::seconds