Syntalos::TableRow

Syntalos::TableRow

Syntalos::TableRow

A new row for a table. More…

#include <datatypes.h>

Inherits from Syntalos::BaseDataType

Public Functions

Name
TableRow() =default
TableRow(const std::vector< std::string > & row)
voidreserve(int size)
voidappend(const std::string & t)
intlength() const
virtual booltoBytes(ByteVector & output) const override
Serialize the data to a byte array.
TableRowfromMemory(const void * memory, size_t size)

Public Attributes

Name
std::vector< std::string >data

Additional inherited members

Public Types inherited from Syntalos::BaseDataType

Name
enumTypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, IntSignalBlock, FloatSignalBlock, Last}
The TypeId enum.

Public Functions inherited from Syntalos::BaseDataType

Name
virtual~BaseDataType() =default
virtual TypeIdtypeId() const =0
virtual ssize_tmemorySize() const
Calculate the size of the data in memory.
virtual boolwriteToMemory(void * memory, ssize_t size =-1) const
Write the data to a memory block.
std::stringtypeIdToString(int value)
std::stringtypeIdToString(TypeId value)
TypeIdtypeIdFromString(const std::string & str)

Detailed Description

struct Syntalos::TableRow;

A new row for a table.

Generic type emitted for adding a table row.

Public Functions Documentation

function TableRow

explicit TableRow() =default

function TableRow

inline explicit TableRow(
    const std::vector< std::string > & row
)

function reserve

inline void reserve(
    int size
)

function append

inline void append(
    const std::string & t
)

function length

inline int length() const

function toBytes

inline virtual bool toBytes(
    ByteVector & output
) const override

Serialize the data to a byte array.

Reimplements: Syntalos::BaseDataType::toBytes

Serialize the data to a byte array for local transmission.

function fromMemory

static inline TableRow fromMemory(
    const void * memory,
    size_t size
)

Public Attributes Documentation

variable data

std::vector< std::string > data;

Updated on 2026-03-16 at 19:16:01 +0000