Class ParseOrderNumber

Class Documentation

class ParseOrderNumber

Parser to read the order number from a tcp sequence.

Public Functions

ParseOrderNumber()

Constructor of the parser.

bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::OrderNumber &order_number) const

Parses a tcp sequence to read the order number of the sensor.

Parameters
  • buffer – The incoming data sequence.

  • order_number – Reference to the parsed order number.

Returns

If parsing the order number was successful.

std::string readOrderNumber(std::vector<uint8_t>::const_iterator data_ptr) const