MeshNet  1.0.0
Public Member Functions | Static Public Member Functions | Data Fields
MeshIDTableRow Struct Reference

Structure, that acts as one row in MeshIDTable. More...

#include <meshTables.h>

Public Member Functions

 MeshIDTableRow ()=default
 
 MeshIDTableRow (uint8_t id, uint8_t source)
 
void clear ()
 Removes all data from current row. More...
 
size_t printRow (OSTREAM &stream) const
 
bool operator== (const MeshIDTableRow &another) const
 

Static Public Member Functions

static size_t printHeader (OSTREAM &stream)
 Print header for table of rows. More...
 

Data Fields

uint8_t ID = 0
 ID of message. More...
 
uint8_t Source = 0
 Source node number. More...
 

Detailed Description

Structure, that acts as one row in MeshIDTable.

Constructor & Destructor Documentation

◆ MeshIDTableRow() [1/2]

MeshIDTableRow::MeshIDTableRow ( )
default

◆ MeshIDTableRow() [2/2]

MeshIDTableRow::MeshIDTableRow ( uint8_t  id,
uint8_t  source 
)

Member Function Documentation

◆ clear()

void MeshIDTableRow::clear ( )
inline

Removes all data from current row.

◆ operator==()

bool MeshIDTableRow::operator== ( const MeshIDTableRow another) const
inline

◆ printHeader()

size_t MeshIDTableRow::printHeader ( OSTREAM stream)
static

Print header for table of rows.

Parameters
streamStream, where header will be printed.
Returns
Returns number of printed characters.

◆ printRow()

size_t MeshIDTableRow::printRow ( OSTREAM stream) const

@breif Prints row to stream.

Parameters
streamStream, where row will be printed.
Returns
Returns number of printed characters.

Field Documentation

◆ ID

uint8_t MeshIDTableRow::ID = 0

ID of message.

◆ Source

uint8_t MeshIDTableRow::Source = 0

Source node number.


The documentation for this struct was generated from the following files: