Fixposition SDK 0.0.0-heads/main-0-g408dc89
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
fpsdk::common::parser::fpa::FpaPayload Struct Referenceabstract

FP_A payload base class. More...

#include <fpa.hpp>

Inheritance diagram for fpsdk::common::parser::fpa::FpaPayload:
[legend]

Public Member Functions

virtual ~FpaPayload ()=default
 Virtual dtor for polymorphism.
virtual bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size)=0
 Set data from message.
bool SetFromBuf (const std::vector< uint8_t > &buf)
 Set data from message.

Public Attributes

bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
FpaMessageType msg_type_ = FpaMessageType::UNSPECIFIED
 Message (payload) type.

Detailed Description

FP_A payload base class.

Definition at line 562 of file fpa.hpp.

Member Function Documentation

◆ SetFromMsg()

◆ SetFromBuf()

bool fpsdk::common::parser::fpa::FpaPayload::SetFromBuf ( const std::vector< uint8_t > & buf)
inline

Set data from message.

Parameters
[in]bufThe FP_A message data
Returns
true if message payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Definition at line 587 of file fpa.hpp.

References SetFromMsg().

Member Data Documentation

◆ valid_

bool fpsdk::common::parser::fpa::FpaPayload::valid_ = false

Payload successfully decoded (true), or not (yet) decoded (false)

Definition at line 564 of file fpa.hpp.

◆ msg_type_

FpaMessageType fpsdk::common::parser::fpa::FpaPayload::msg_type_ = FpaMessageType::UNSPECIFIED

Message (payload) type.

Definition at line 565 of file fpa.hpp.


The documentation for this struct was generated from the following file:
  • fpsdk_common/include/fpsdk_common/parser/fpa.hpp