TableRow
TableRow
A new row for a table. More…
#include <datatypes.h>
Inherits from BaseDataType
Public Functions
Name | |
---|---|
TableRow() | |
TableRow(const QList< QString > & row) | |
void | reserve(int size) |
void | append(const QString & t) |
int | length() const |
virtual QByteArray | toBytes() const override Serialize the data to a byte array. |
TableRow | fromMemory(const void * memory, size_t size) |
Public Attributes
Name | |
---|---|
QList< QString > | data |
Additional inherited members
Public Types inherited from BaseDataType
Name | |
---|---|
enum | TypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, IntSignalBlock, FloatSignalBlock, Last} The TypeId enum. |
Public Functions inherited from BaseDataType
Name | |
---|---|
QString | typeIdToString(TypeId value) |
QString | typeIdToString(int value) |
TypeId | typeIdFromString(const QString & str) |
virtual TypeId | typeId() const =0 |
virtual ssize_t | memorySize() const Calculate the size of the data in memory. |
virtual bool | writeToMemory(void * memory, ssize_t size =-1) const Write the data to a memory block. |
Detailed Description
struct TableRow;
A new row for a table.
Generic type emitted for adding a table row.
Public Functions Documentation
function TableRow
inline explicit TableRow()
function TableRow
inline explicit TableRow(
const QList< QString > & row
)
function reserve
inline void reserve(
int size
)
function append
inline void append(
const QString & t
)
function length
inline int length() const
function toBytes
inline virtual QByteArray toBytes() const override
Serialize the data to a byte array.
Reimplements: 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
QList< QString > data;
Updated on 2024-11-06 at 17:10:28 +0000