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();
57 std::vector<uint8_t>::const_iterator data_ptr,
66 required_user_action.
setCheckDevice(static_cast<bool>(word & (0x01 << 4)));
68 required_user_action.
setCheckFirmware(static_cast<bool>(word & (0x01 << 6)));
69 required_user_action.
setWait(static_cast<bool>(word & (0x01 << 7)));
void setConfirmConfiguration(bool confirm_configuration)
Sets whether the configuration has to be confirmed.
bool readRequiredUserAction(std::vector< uint8_t >::const_iterator data_ptr, datastructure::RequiredUserAction &required_user_action) const
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 setCheckEnvironment(bool check_environment)
Sets whether the environment has to be checked.
ParseRequiredUserActionData()
Constructor of the parser.
void setRunSetupProcedure(bool run_setup_procedure)
Sets whether the setup procedure has to be run.
void setCheckConfiguration(bool check_configuration)
Sets whether the configuration has to be checked.
void setCheckDevice(bool check_device)
Sets whether the device has to be checked.
void setCheckApplicationInterfaces(bool check_application_interfaces)
Sets whether the application interfaces have to be checked.
void setWait(bool wait)
Sets whether the user has to wait.
void setCheckFirmware(bool check_firmware)
Sets whether the firmware has to be checked.
Class containing the additional information about the sopas state.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::RequiredUserAction &required_user_action) const
Parses a tcp sequence to read the required user action of the sensor.