40 namespace data_processing {
50 const std::shared_ptr<std::vector<uint8_t>
const> vec_ptr = buffer.
getBuffer();
51 std::vector<uint8_t>::const_iterator data_ptr = vec_ptr->begin();
uint32_t readErrorInfoTime(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
void setApplicationState(uint8_t application_state)
Sets the application state for the scanner.
void setErrorInfoDate(uint16_t error_info_date)
Sets the error info date for the scanner.
void setVersionMinorVersionNumber(const uint8_t &version_minor_version_number)
Sets the minor version number for the scanner.
void setErrorInfoCode(uint32_t error_info_code)
Sets the error info code for the scanner.
A packetbuffer for the raw data from the sensor.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
void setCurrentTimeTime(uint32_t current_time_time)
Sets the current time time for the scanner.
uint32_t readPowerOnCount(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readApplicationState(std::vector< uint8_t >::const_iterator data_ptr) const
void setErrorInfoTime(uint32_t error_info_time)
Sets the error info time for the scanner.
uint8_t readConfigState(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readUint32LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 32-bit integer at offset in little endian encoding.
uint8_t readDeviceState(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readCurrentTime(std::vector< uint8_t >::const_iterator data_ptr) const
void setVersionMajorVersionNumber(const uint8_t &version_major_version_number)
Sets the major version number for the scanner.
uint16_t readErrorInfoDate(std::vector< uint8_t >::const_iterator data_ptr) const
Class containing the serial number of a laser scanner.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::StatusOverview &status_overview) const
Parses a tcp sequence to read the status overview of the sensor.
void setCurrentTimeDate(uint16_t current_time_date)
Sets the current time date for the scanner.
void setConfigState(uint8_t config_state)
Sets the config state for the scanner.
ParseStatusOverviewData()
Constructor of the parser.
void setCurrentTimePowerOnCount(uint32_t current_time_power_on_count)
Sets the current time power on count for the scanner.
void setVersionReleaseNumber(const uint8_t &version_release_number)
Sets the version release number for the scanner.
uint8_t readUint8(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.
void setVersionCVersion(const std::string &version_c_version)
Sets the version indicator for the scanner.
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
void setDeviceState(uint8_t device_state)
Sets the device state for the scanner.
uint16_t readCurrentDate(std::vector< uint8_t >::const_iterator data_ptr) const
std::string readVersionIndicator(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readErrorInfoCode(std::vector< uint8_t >::const_iterator data_ptr) const