Voyant API 0.16.0
Loading...
Searching...
No Matches
VoyantSdlConfigWrapper Class Reference

Wrapper for VoyantSdlConfig messages. More...

#include <voyant_sdl_config_wrapper.hpp>

Inheritance diagram for VoyantSdlConfigWrapper:
CapnpWrapper< VoyantSdlConfig >

Public Member Functions

 ~VoyantSdlConfigWrapper () override
 Destructor.
void fromProto (VoyantSdlConfig::Reader reader) override
 Update wrapper fields from a reader.
void toProto (VoyantSdlConfig::Builder &builder) const override
 Write wrapper fields to a builder.
void debugString (std::ostream &os) const override
 Generate a debug string representation.
const std::string & fullConfig () const
 Get the full configuration string.
void setFullConfig (std::string config)
 Set the full configuration string.
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

std::string full_config_
 JSON configuration string.

Detailed Description

Wrapper for VoyantSdlConfig messages.

Manages configuration data for Voyant LiDAR systems. Currently stores configuration as a JSON string, potentially to be replaced with a more structured format in the future.

Constructor & Destructor Documentation

◆ ~VoyantSdlConfigWrapper()

VoyantSdlConfigWrapper::~VoyantSdlConfigWrapper ( )
override

Destructor.

Member Function Documentation

◆ debugString()

void VoyantSdlConfigWrapper::debugString ( std::ostream & os) const
overridevirtual

Generate a debug string representation.

Parameters
osThe output stream to write to

Implements CapnpWrapper< VoyantSdlConfig >.

◆ fromBuffer()

void CapnpWrapper< VoyantSdlConfig >::fromBuffer ( const uint8_t * buffer,
size_t size )
inlineinherited

Update wrapper fields from a serialized message buffer.

Parameters
bufferPointer to the buffer containing serialized Cap'n Proto data
sizeSize of the buffer in bytes

◆ fromProto()

void VoyantSdlConfigWrapper::fromProto ( VoyantSdlConfig::Reader reader)
overridevirtual

Update wrapper fields from a reader.

Parameters
readerThe VoyantSdlConfig reader to extract data from

Implements CapnpWrapper< VoyantSdlConfig >.

◆ fullConfig()

const std::string & VoyantSdlConfigWrapper::fullConfig ( ) const
inline

Get the full configuration string.

Returns
Const reference to the JSON configuration

◆ setFullConfig()

void VoyantSdlConfigWrapper::setFullConfig ( std::string config)
inline

Set the full configuration string.

Parameters
configJSON configuration string

◆ toBuffer()

size_t CapnpWrapper< VoyantSdlConfig >::toBuffer ( uint8_t * buffer,
size_t buffer_size ) const
inlineinherited

Serialize this wrapper to a buffer using Cap'n Proto format.

Parameters
bufferPointer to the buffer to write serialized data to
buffer_sizeSize of the buffer in bytes
Returns
The number of bytes written to the buffer
Exceptions
std::runtime_errorif the buffer is too small

◆ toProto()

void VoyantSdlConfigWrapper::toProto ( VoyantSdlConfig::Builder & builder) const
overridevirtual

Write wrapper fields to a builder.

Parameters
builderThe VoyantSdlConfig builder to write data to

Implements CapnpWrapper< VoyantSdlConfig >.

Member Data Documentation

◆ full_config_

std::string VoyantSdlConfigWrapper::full_config_
private

JSON configuration string.


The documentation for this class was generated from the following file: