34 static bool verifySize(
size_t elementSize );
83 const auto isValidSize =
sizeof( T ) == elementSize;
85 LOGGER_WARNING() <<
"View data type size mismatch, sizeof(" <<
typeid( T ).name() <<
") = "
86 <<
sizeof( T ) <<
" != " << elementSize <<
" (elementSize)."
95 if ( !ISensorOutput::verifySize<T>( this->getElementSize() ) )
97 return getData().view<T>();
Buffer used for sensor output of a wide range of output element types.
View for reading sections of a binary packed buffer of the specified template parameter type.
Common interface for sensor output data.
virtual const BinaryOutputBuffer & getData()=0
Returns access to the sensor output data.
virtual bool hasUnreadData(bool markAsRead=true)=0
ISensorOutput()=default
Default constructor.
virtual size_t getElementSize() const =0
"Element size" is the summed data size of the currently added sensor output fields.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...