7 : m_availableInputInterfaces(0)
8 , m_availableOutputInterfaces(0)
42 throw std::runtime_error(
49 throw std::runtime_error(
"TODO");
58 throw std::runtime_error(
"TODO");
67 throw std::runtime_error(
"TODO");
79 throw std::runtime_error(
80 "Unirec::defineUnirecField() has failed. Error code=[" + std::to_string(
ret) +
"]");
This exception is thrown when the libtrap command-line argument contains help flag.
Class representing information about a trap module.
trap_module_info_t m_moduleInfo
A class that provides a bidirectional interface for sending and receiving unirec records.
A class for sending UniRec records through a Trap interface.
Unirec(const TrapModuleInfo &trapModuleInfo)
bool isBidirectionalInterfaceAvailable() const noexcept
UnirecBidirectionalInterface buildBidirectionalInterface()
void parseCommandLine(int &argc, char **argv, trap_ifc_spec_t &trapIfcSpec)
UnirecInputInterface buildInputInterface()
Builds and returns a UnirecInputInterface object if an input interface is available.
TrapModuleInfo m_trapModuleInfo
void init(int &argc, char **argv)
bool isInputInterfaceAvailable() const noexcept
bool isOutputInterfaceAvailable() const noexcept
uint8_t m_availableInputInterfaces
ur_field_id_t defineUnirecField(const std::string &fieldName, ur_field_type_t fieldType)
UnirecOutputInterface buildOutputInterface()
uint8_t m_availableOutputInterfaces
void ur_finalize()
Deallocate UniRec structures Deallocate UniRec structures at the end of a program....
int ur_define_field(const char *name, ur_field_type_t type)
Define new UniRec field Define new UniRec field at run-time. It adds new field into existing structur...
constexpr ur_field_type_t getExpectedUnirecType()
Determines the expected UniRec field type for a given C++ type T.
Defines custom exception classes.
int16_t ur_field_id_t
Type of UniRec field identifiers.