~UnirecOutputInterface()
Destructor for the UnirecOutputInterface class.
void sendFlush() const
Flushes any pending UniRec records in the Trap interface.
A class for sending UniRec records through a Trap interface.
UnirecRecord m_unirecRecord
UnirecRecord createUnirecRecord(size_t maxVariableFieldsSize=UR_MAX_SIZE)
Creates a new UniRec record with the specified maximum variable fields size.
A class for working with UniRec records and their fields.
void changeTemplate(const std::string &templateFields="")
Changes the UniRec template for the Trap interface.
Defines the UnirecRecord class.
UnirecOutputInterface(uint8_t interfaceID)
Provides a view into a UniRec record.
void setAutoflushTimeout(int timeout)
Sets the autoflush timeout for the Trap interface.
bool handleSendErrorCodes(int errorCode) const
ur_template_t * getTemplate() const noexcept
Gets the Unirec template used by the output interface.
Definition of UniRec structures and functions.
bool send(UnirecRecord &unirecRecord) const
Sends a UniRec record through the Trap interface.
void doNotsendEoFOnExit()
Disables sending an end-of-file marker on exit.
UnirecRecord & getUnirecRecord() noexcept
Gets a reference to the pre-allocated UniRec record for efficient use.
Provides a view into a UniRec record.
ur_template_t * m_template
UniRec template. It contains a table mapping a field to its position in an UniRec record...
void setTimeout(int timeout)
Sets the send timeout for the Trap interface.