Public Member Functions | Private Attributes
sick::datastructure::DataHeader Class Reference

Contains the content of the data header of a udp data packet. More...

#include <DataHeader.h>

List of all members.

Public Member Functions

 DataHeader ()
 Constructor of an empty data header.
uint16_t getApplicationDataBlockOffset () const
 Gets the application io data block offset.
uint16_t getApplicationDataBlockSize () const
 Gets the application io data block size.
uint8_t getChannelNumber () const
 Gets the number of channel the measurement data belongs to.
uint16_t getDerivedValuesBlockOffset () const
 Gets the derived values block offset.
uint16_t getDerivedValuesBlockSize () const
 Gets the derived values block size.
uint16_t getGeneralSystemStateBlockOffset () const
 Gets the general system state block offset.
uint16_t getGeneralSystemStateBlockSize () const
 Gets the general system state block size.
uint16_t getIntrusionDataBlockOffset () const
 Gets the intrusion data block offset.
uint16_t getIntrusionDataBlockSize () const
 Gets the intrusion data block size.
uint16_t getMeasurementDataBlockOffset () const
 Gets the measurement data block offset.
uint16_t getMeasurementDataBlockSize () const
 Gets the measurement data block size.
uint32_t getScanNumber () const
 Gets the scan number of the measurement data instance.
uint32_t getSequenceNumber () const
 Gets the sequence number of the measurement data.
uint32_t getSerialNumberOfDevice () const
 Gets the serial number of the device.
uint32_t getSerialNumberOfSystemPlug () const
 Gets the serial number of the system plug.
uint16_t getTimestampDate () const
 Gets the timestamp date.
uint32_t getTimestampTime () const
 Gets the timestamp time.
uint8_t getVersionIndicator () const
 Gets the version indicator. Capital letter 'V' or 'R' for releases.
uint8_t getVersionMajorVersion () const
 Returns the major version number. Different numbers indicate incompatible implementation.
uint8_t getVersionMinorVersion () const
 Returns the minor version number. Different numbers indicate compatible implementation if the major version is equal.
uint8_t getVersionRelease () const
 Gets the release of the version.
bool isEmpty () const
 Checks if the data header block is empty.
void setApplicationDataBlockOffset (const uint16_t &application_data_block_offset)
 Sets the application io data block offset.
void setApplicationDataBlockSize (const uint16_t &application_data_block_size)
 Sets the application io data block size.
void setChannelNumber (const uint8_t &channel_number)
 Sets the number of channel the measurement data belongs to.
void setDerivedValuesBlockOffset (const uint16_t &derived_values_block_offset)
 Sets the derived values block offset.
void setDerivedValuesBlockSize (const uint16_t &derived_values_block_size)
 Sets the derived values block size.
void setGeneralSystemStateBlockOffset (const uint16_t &general_system_state_block_offset)
 Sets the general system state block offset.
void setGeneralSystemStateBlockSize (const uint16_t &general_system_state_block_size)
 Sets the general system state block size.
void setIntrusionDataBlockOffset (const uint16_t &intrusion_data_block_offset)
 Sets the intrusion data block offset.
void setIntrusionDataBlockSize (const uint16_t &intrusion_data_block_size)
 Sets the intrusion data block size.
void setIsEmpty (bool is_empty)
 Sets if the data header is empty.
void setMeasurementDataBlockOffset (const uint16_t &measurement_data_block_offset)
 Sets the measurement data block offset.
void setMeasurementDataBlockSize (const uint16_t &measurement_data_block_size)
 Sets the measurement data block size.
void setScanNumber (const uint32_t &scan_number)
 Sets the scan number of the measurement data.
void setSequenceNumber (const uint32_t &sequence_number)
 Sets the sequence number of the measurement data.
void setSerialNumberOfDevice (const uint32_t &serial_number_of_device)
 Sets the serial number of the device.
void setSerialNumberOfSystemPlug (const uint32_t &serial_number_of_system_plug)
 Sets the serial number of the system plug.
void setTimestampDate (const uint16_t &timestamp_date)
 Sets the timestamp date.
void setTimestampTime (const uint32_t &timestamp_time)
 Sets the timestamp time.
void setVersionIndicator (const uint8_t &version_indicator)
 Sets the version indicator.
void setVersionMajorVersion (const uint8_t &version_major_version)
 Sets the major version number.
void setVersionMinorVersion (const uint8_t &version_minor_version)
 Sets the minor version number.
void setVersionRelease (const uint8_t &version_release)
 Sets the release of the version.

Private Attributes

uint16_t m_application_data_block_offset
uint16_t m_application_data_block_size
uint8_t m_channel_number
uint16_t m_derived_values_block_offset
uint16_t m_derived_values_block_size
uint16_t m_general_system_state_block_offset
uint16_t m_general_system_state_block_size
uint16_t m_intrusion_data_block_offset
uint16_t m_intrusion_data_block_size
bool m_is_empty
uint16_t m_measurement_data_block_offset
uint16_t m_measurement_data_block_size
uint32_t m_scan_number
uint32_t m_sequence_number
uint32_t m_serial_number_of_device
uint32_t m_serial_number_of_system_plug
uint16_t m_timestamp_date
uint32_t m_timestamp_time
uint8_t m_version_indicator
uint8_t m_version_major_version
uint8_t m_version_minor_version
uint8_t m_version_release

Detailed Description

Contains the content of the data header of a udp data packet.

Definition at line 46 of file DataHeader.h.


Constructor & Destructor Documentation

Constructor of an empty data header.

Definition at line 40 of file DataHeader.cpp.


Member Function Documentation

Gets the application io data block offset.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The application io data block offset.

Definition at line 235 of file DataHeader.cpp.

Gets the application io data block size.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The application data io offset.

Definition at line 245 of file DataHeader.cpp.

Gets the number of channel the measurement data belongs to.

Returns:
The number of channel.

Definition at line 105 of file DataHeader.cpp.

Gets the derived values block offset.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The derived values block offset.

Definition at line 175 of file DataHeader.cpp.

Gets the derived values block size.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The derived values block size.

Definition at line 185 of file DataHeader.cpp.

Gets the general system state block offset.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The general system state block offset.

Definition at line 155 of file DataHeader.cpp.

Gets the general system state block size.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The general system state block size.

Definition at line 165 of file DataHeader.cpp.

Gets the intrusion data block offset.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The intrusion data block offset.

Definition at line 215 of file DataHeader.cpp.

Gets the intrusion data block size.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The intrusion data block size.

Definition at line 225 of file DataHeader.cpp.

Gets the measurement data block offset.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The measurement data block offset.

Definition at line 195 of file DataHeader.cpp.

Gets the measurement data block size.

If a block is not included (not configured or data currently not available) then Size = 0 and Offset = 0.

Returns:
The measurement data block size.

Definition at line 205 of file DataHeader.cpp.

Gets the scan number of the measurement data instance.

Returns:
The scan number.

Definition at line 125 of file DataHeader.cpp.

Gets the sequence number of the measurement data.

This sequence number increases with each instance of measurement data that is produced by a given channel.

Returns:
The sequence number.

Definition at line 115 of file DataHeader.cpp.

Gets the serial number of the device.

Returns:
The serial number of the device.

Definition at line 85 of file DataHeader.cpp.

Gets the serial number of the system plug.

Returns:
The serial number of the system plug.

Definition at line 95 of file DataHeader.cpp.

Gets the timestamp date.

A timestamp when the measurement data output instance was created. Note: While the measurements are performed periodically using the configured scan cycle time, you may experience a jitter in the timestamp reported here as it is not synchronized with the start of the scan.

Returns:
The timestamp date.

Definition at line 135 of file DataHeader.cpp.

Gets the timestamp time.

A timestamp when the measurement data output instance was created. Note: While the measurements are performed periodically using the configured scan cycle time, you may experience a jitter in the timestamp reported here as it is not synchronized with the start of the scan.

Returns:
The timestamp time.

Definition at line 145 of file DataHeader.cpp.

Gets the version indicator. Capital letter 'V' or 'R' for releases.

Returns:
The version indicator.

Definition at line 45 of file DataHeader.cpp.

Returns the major version number. Different numbers indicate incompatible implementation.

Returns:
The major version indicator.

Definition at line 55 of file DataHeader.cpp.

Returns the minor version number. Different numbers indicate compatible implementation if the major version is equal.

Returns:
The minor version number.

Definition at line 65 of file DataHeader.cpp.

Gets the release of the version.

Returns:
The release of the version.

Definition at line 75 of file DataHeader.cpp.

Checks if the data header block is empty.

Returns:
If the data header is empty.

Definition at line 255 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setApplicationDataBlockOffset ( const uint16_t &  application_data_block_offset)

Sets the application io data block offset.

Parameters:
application_data_block_offsetThe new application io data block offset.

Definition at line 240 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setApplicationDataBlockSize ( const uint16_t &  application_data_block_size)

Sets the application io data block size.

Parameters:
application_data_block_sizeThe new application data block size.

Definition at line 250 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setChannelNumber ( const uint8_t &  channel_number)

Sets the number of channel the measurement data belongs to.

Parameters:
channel_numberThe new channel number.

Definition at line 110 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setDerivedValuesBlockOffset ( const uint16_t &  derived_values_block_offset)

Sets the derived values block offset.

Parameters:
derived_values_block_offsetThe new derived values block offset.

Definition at line 180 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setDerivedValuesBlockSize ( const uint16_t &  derived_values_block_size)

Sets the derived values block size.

Parameters:
derived_values_block_sizeThe new derived values block size.

Definition at line 190 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setGeneralSystemStateBlockOffset ( const uint16_t &  general_system_state_block_offset)

Sets the general system state block offset.

Parameters:
general_system_state_block_offsetThe new general system state block offset.

Definition at line 160 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setGeneralSystemStateBlockSize ( const uint16_t &  general_system_state_block_size)

Sets the general system state block size.

Parameters:
general_system_state_block_sizeThe new general system state block size.

Definition at line 170 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setIntrusionDataBlockOffset ( const uint16_t &  intrusion_data_block_offset)

Sets the intrusion data block offset.

Parameters:
intrusion_data_block_offsetThe new intrusion data block offset.

Definition at line 220 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setIntrusionDataBlockSize ( const uint16_t &  intrusion_data_block_size)

Sets the intrusion data block size.

Parameters:
intrusion_data_block_sizeThe new intrusion data block size.

Definition at line 230 of file DataHeader.cpp.

Sets if the data header is empty.

Parameters:
is_emptyIf the data header is empty.

Definition at line 260 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setMeasurementDataBlockOffset ( const uint16_t &  measurement_data_block_offset)

Sets the measurement data block offset.

Parameters:
measurement_data_block_offsetThe new measurement data block offset.

Definition at line 200 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setMeasurementDataBlockSize ( const uint16_t &  measurement_data_block_size)

Sets the measurement data block size.

Parameters:
measurement_data_block_sizeThe new measurement data block size.

Definition at line 210 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setScanNumber ( const uint32_t &  scan_number)

Sets the scan number of the measurement data.

Parameters:
scan_numberThe new scan number.

Definition at line 130 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setSequenceNumber ( const uint32_t &  sequence_number)

Sets the sequence number of the measurement data.

Parameters:
sequence_numberThe sequence number.

Definition at line 120 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setSerialNumberOfDevice ( const uint32_t &  serial_number_of_device)

Sets the serial number of the device.

Parameters:
serial_number_of_deviceThe serial number of the device.

Definition at line 90 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setSerialNumberOfSystemPlug ( const uint32_t &  serial_number_of_system_plug)

Sets the serial number of the system plug.

Parameters:
serial_number_of_system_plugThe serial number of the system plug.

Definition at line 100 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setTimestampDate ( const uint16_t &  timestamp_date)

Sets the timestamp date.

Parameters:
timestamp_dateThe new timestamp date.

Definition at line 140 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setTimestampTime ( const uint32_t &  timestamp_time)

Sets the timestamp time.

Parameters:
timestamp_timeThe new timestamp time.

Definition at line 150 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setVersionIndicator ( const uint8_t &  version_indicator)

Sets the version indicator.

Parameters:
version_indicatorThe new version indicator.

Definition at line 50 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setVersionMajorVersion ( const uint8_t &  version_major_version)

Sets the major version number.

Parameters:
version_major_versionThe new major version number.

Definition at line 60 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setVersionMinorVersion ( const uint8_t &  version_minor_version)

Sets the minor version number.

Parameters:
version_minor_versionThe new minor version number.

Definition at line 70 of file DataHeader.cpp.

void sick::datastructure::DataHeader::setVersionRelease ( const uint8_t &  version_release)

Sets the release of the version.

Parameters:
version_releaseThe new release of the version.

Definition at line 80 of file DataHeader.cpp.


Member Data Documentation

Definition at line 410 of file DataHeader.h.

Definition at line 411 of file DataHeader.h.

Definition at line 397 of file DataHeader.h.

Definition at line 404 of file DataHeader.h.

Definition at line 405 of file DataHeader.h.

Definition at line 402 of file DataHeader.h.

Definition at line 403 of file DataHeader.h.

Definition at line 408 of file DataHeader.h.

Definition at line 409 of file DataHeader.h.

Definition at line 389 of file DataHeader.h.

Definition at line 406 of file DataHeader.h.

Definition at line 407 of file DataHeader.h.

Definition at line 399 of file DataHeader.h.

Definition at line 398 of file DataHeader.h.

Definition at line 395 of file DataHeader.h.

Definition at line 396 of file DataHeader.h.

Definition at line 400 of file DataHeader.h.

Definition at line 401 of file DataHeader.h.

Definition at line 391 of file DataHeader.h.

Definition at line 392 of file DataHeader.h.

Definition at line 393 of file DataHeader.h.

Definition at line 394 of file DataHeader.h.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:37