Public Member Functions | Private Member Functions | List of all members
sick::data_processing::ParseUserNameData Class Reference

Parser to read the type code of a tcp sequence. More...

#include <ParseUserNameData.h>

Public Member Functions

bool parseTCPSequence (const datastructure::PacketBuffer &buffer, datastructure::UserName &user_name) const
 Parses a tcp sequence to read the type code of the sensor. More...
 
 ParseUserNameData ()
 Constructor of the parser. More...
 

Private Member Functions

uint8_t readMajorNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readMinorNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint32_t readNameLength (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readReleaseNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::string readUserName (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::string readVersionIndicator (std::vector< uint8_t >::const_iterator data_ptr) const
 

Detailed Description

Parser to read the type code of a tcp sequence.

Definition at line 52 of file ParseUserNameData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseUserNameData::ParseUserNameData ( )

Constructor of the parser.

Definition at line 42 of file ParseUserNameData.cpp.

Member Function Documentation

bool sick::data_processing::ParseUserNameData::parseTCPSequence ( const datastructure::PacketBuffer buffer,
datastructure::UserName user_name 
) const

Parses a tcp sequence to read the type code of the sensor.

Parameters
bufferThe incoming tcp sequence.
user_nameReference to the user name, which will be written while parsing.
Returns
If parsing was successful.

Definition at line 45 of file ParseUserNameData.cpp.

uint8_t sick::data_processing::ParseUserNameData::readMajorNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 68 of file ParseUserNameData.cpp.

uint8_t sick::data_processing::ParseUserNameData::readMinorNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 73 of file ParseUserNameData.cpp.

uint32_t sick::data_processing::ParseUserNameData::readNameLength ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 83 of file ParseUserNameData.cpp.

uint8_t sick::data_processing::ParseUserNameData::readReleaseNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 78 of file ParseUserNameData.cpp.

std::string sick::data_processing::ParseUserNameData::readUserName ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 89 of file ParseUserNameData.cpp.

std::string sick::data_processing::ParseUserNameData::readVersionIndicator ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 61 of file ParseUserNameData.cpp.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:42