AMS Advanced Air Mobility Sensors UG
Loading...
Searching...
No Matches
NLibCommon::CSerializable Class Reference

Base class for serializable objects. More...

Inheritance diagram for NLibCommon::CSerializable:
CBahrsFilterOutput CImuDataAfterMonitor SAttitudeData SBarometerMeasurement SImuMeasurement SMagneticHeading SMagneticMeasurement SOutputImuData STimeOfSyncPulse SVerticalChannelData

Public Member Functions

virtual std::vector< uint8_t > ToByteVector ()
 Generate byte representation of the object.
 
virtual bool FromByteVector (const std::vector< uint8_t > &korBytes)
 Create (assign) an object from its byte representation.
 

Detailed Description

Base class for serializable objects.

Member Function Documentation

◆ FromByteVector()

virtual bool NLibCommon::CSerializable::FromByteVector ( const std::vector< uint8_t > &  korBytes)
inlinevirtual

Create (assign) an object from its byte representation.

Parameters
korBytesByte sequence to create the object from.
Returns
True on success, false on failure.

◆ ToByteVector()

virtual std::vector< uint8_t > NLibCommon::CSerializable::ToByteVector ( )
inlinevirtual

Generate byte representation of the object.

Returns
Empty byte vector on failure, otherwise representation of the objects in the form of byte sequence.

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