11#include <libtrap/trap.h>
23 , m_prioritizedDataPointer(
nullptr)
62 throw std::runtime_error(
63 "UnirecInputInterface::receive() has failed. Trap interface is not initialized.");
66 throw std::runtime_error(
67 "UnirecInputInterface::receive() has failed. Trap interface is terminated.");
70 throw std::runtime_error(
71 "UnirecInputInterface::receive() has failed. Interface ID out of range.");
73 throw std::runtime_error(
74 "UnirecInputInterface::receive() has failed. Return code: " + std::to_string(
errorCode)
82 throw std::runtime_error(
83 "UnirecInputInterface::setRequieredFormat() has failed. Unable to set required "
93 const char*
spec =
nullptr;
97 throw std::runtime_error(
98 "UnirecInputInterface::changeTemplate() has failed. Data format was not "
109 throw std::runtime_error(
110 "UnirecInputInterface::changeTemplate() has failed. Template could not be "
116 throw std::runtime_error(
"UnirecInputInterface::changeTemplate() has failed.");
An exception that is thrown when the end of the input stream is reached.
Provides a view into a UniRec record.
ur_template_t * ur_define_fields_and_update_template(const char *ifc_data_fmt, ur_template_t *tmplt)
Defined new fields and expand an UniRec template Define new fields (function ur_define_set_of_fields)...
void ur_free_template(ur_template_t *tmplt)
Destroy UniRec template Free all memory allocated for a template created previously by ur_create_temp...
#define ur_set_input_template(ifc, tmplt)
Set UniRec template to input interface.
constexpr ur_field_type_t getExpectedUnirecType()
Determines the expected UniRec field type for a given C++ type T.