Class CoLaParameterReader

Class Documentation

class CoLaParameterReader

Class for reading data from a CoLaCommand.

Public Functions

CoLaParameterReader(CoLaCommand command)
~CoLaParameterReader()
void rewind()

Rewind the position to the first parameter.

int8_t readSInt()

Read a signed short int (8 bit, range [-128, 127]) and advances position by 1 byte.

uint8_t readUSInt()

Read a unsigned short int (8 bit, range [0, 255]) and advances position by 1 byte.

int16_t readInt()

Read a signed int (16 bit, range [-32768, 32767]) and advances position by 2 bytes.

uint16_t readUInt()

Read a unsigned int (16 bit, range [0, 65535]) and advances position by 2 bytes.

int32_t readDInt()

Read a signed double int (32 bit) and advances position by 4 bytes.

uint32_t readUDInt()

Read a unsigned int (32 bit) and advances position by 4 bytes.

float readReal()

Read a IEEE-754 single precision (32 bit) and advances position by 4 bytes.

double readLReal()

Read a IEEE-754 double precision (64 bit) and advances position by 8 bytes.

bool readBool()

Read a boolean and advance the position by 1 byte.

std::string readFlexString()

Read a flex string, and advance position according to string size.