Wrapper for VoyantFrame messages.
More...
#include <voyant_frame_wrapper.hpp>
Wrapper for VoyantFrame messages.
Contains a complete frame of point data with a dynamic number of points, along with header information and configuration.
◆ ~VoyantFrameWrapper()
VoyantFrameWrapper::~VoyantFrameWrapper |
( |
| ) |
|
|
override |
◆ config()
Get the configuration.
- Returns
- Const reference to the configuration
- Note
- The configuration field may be empty in the current implementation
◆ configMut()
Get mutable access to the configuration.
- Returns
- Reference to the configuration
- Note
- The configuration field may be empty in the current implementation
◆ debugString()
void VoyantFrameWrapper::debugString |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
◆ fromBuffer()
Update wrapper fields from a serialized message buffer.
- Parameters
-
buffer | Pointer to the buffer containing serialized Cap'n Proto data |
size | Size of the buffer in bytes |
◆ fromProto() [1/2]
Update wrapper fields from a Cap'n Proto reader.
- Parameters
-
reader | The Cap'n Proto reader to extract data from |
◆ fromProto() [2/2]
Update wrapper fields from a reader.
- Parameters
-
◆ header()
Get the common header.
- Returns
- Const reference to the Voyant header
◆ headerMut()
Get mutable access to the common header.
- Returns
- Reference to the Voyant header
◆ points()
Get the vector of points.
- Returns
- Const reference to the vector of point data
◆ pointsMut()
Get mutable access to the vector of points.
- Returns
- Reference to the vector of point data
◆ toBuffer()
Serialize this wrapper to a buffer using Cap'n Proto format.
- Parameters
-
buffer | Pointer to the buffer to write serialized data to |
buffer_size | Size of the buffer in bytes |
- Returns
- The number of bytes written to the buffer
- Exceptions
-
std::runtime_error | if the buffer is too small |
◆ toProto() [1/2]
Write wrapper fields to a Cap'n Proto builder.
- Parameters
-
builder | The Cap'n Proto builder to write data to |
◆ toProto() [2/2]
Write wrapper fields to a builder.
- Parameters
-
The documentation for this class was generated from the following file: