|
Voyant API 0.16.0
|
Wrapper for VoyantFrame messages. More...
#include <voyant_frame_wrapper.hpp>
Public Member Functions | |
| ~VoyantFrameWrapper () override | |
| Destructor. | |
| void | fromProto (VoyantFrame::Reader reader) override |
| Update wrapper fields from a reader. | |
| void | toProto (VoyantFrame::Builder &builder) const override |
| Write wrapper fields to a builder. | |
| void | debugString (std::ostream &os) const override |
| Generate a debug string representation. | |
| const VoyantHeaderWrapper & | header () const |
| Get the common header. | |
| VoyantHeaderWrapper & | headerMut () |
| Get mutable access to the common header. | |
| const VoyantSdlConfigWrapper & | config () const |
| Get the configuration. | |
| VoyantSdlConfigWrapper & | configMut () |
| Get mutable access to the configuration. | |
| const std::vector< PointDataWrapper > & | points () const |
| Get the vector of points. | |
| std::vector< PointDataWrapper > & | pointsMut () |
| Get mutable access to the vector of points. | |
| void | fromBuffer (const uint8_t *buffer, size_t size) |
| Update wrapper fields from a serialized message buffer. | |
| size_t | toBuffer (uint8_t *buffer, size_t buffer_size) const |
| Serialize this wrapper to a buffer using Cap'n Proto format. | |
Private Attributes | |
| VoyantHeaderWrapper | header_ |
| Common Voyant message header. | |
| VoyantSdlConfigWrapper | config_ |
| Configuration (may be empty in current implementation). | |
| std::vector< PointDataWrapper > | points_ |
| Vector of point data. | |
Wrapper for VoyantFrame messages.
Contains a complete frame of point data with a dynamic number of points, along with header information and configuration.
|
override |
Destructor.
|
inline |
Get the configuration.
|
inline |
Get mutable access to the configuration.
|
overridevirtual |
Generate a debug string representation.
| os | The output stream to write to |
Implements CapnpWrapper< VoyantFrame >.
|
inlineinherited |
Update wrapper fields from a serialized message buffer.
| buffer | Pointer to the buffer containing serialized Cap'n Proto data |
| size | Size of the buffer in bytes |
|
overridevirtual |
Update wrapper fields from a reader.
| reader | The VoyantFrame reader to extract data from |
Implements CapnpWrapper< VoyantFrame >.
|
inline |
Get the common header.
|
inline |
Get mutable access to the common header.
|
inline |
Get the vector of points.
|
inline |
Get mutable access to the vector of points.
|
inlineinherited |
Serialize this wrapper to a buffer using Cap'n Proto format.
| buffer | Pointer to the buffer to write serialized data to |
| buffer_size | Size of the buffer in bytes |
| std::runtime_error | if the buffer is too small |
|
overridevirtual |
Write wrapper fields to a builder.
| builder | The VoyantFrame builder to write data to |
Implements CapnpWrapper< VoyantFrame >.
|
private |
Configuration (may be empty in current implementation).
|
private |
Common Voyant message header.
|
private |
Vector of point data.