DatagramHeader.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
36 
37 namespace sick {
38 namespace datastructure {
39 
41 
43 {
44  return m_datagram_marker;
45 }
46 
47 void DatagramHeader::setDatagramMarker(const uint32_t& value)
48 {
49  m_datagram_marker = value;
50 }
51 
53 {
54  return m_protocol;
55 }
56 
57 void DatagramHeader::setProtocol(const uint16_t& value)
58 {
59  m_protocol = value;
60 }
61 
63 {
64  return m_major_version;
65 }
66 
67 void DatagramHeader::setMajorVersion(const uint8_t& value)
68 {
69  m_major_version = value;
70 }
71 
73 {
74  return m_minor_version;
75 }
76 
77 void DatagramHeader::setMinorVersion(const uint8_t& value)
78 {
79  m_minor_version = value;
80 }
81 
83 {
84  return m_total_length;
85 }
86 
87 void DatagramHeader::setTotalLength(const uint32_t& value)
88 {
89  m_total_length = value;
90 }
91 
93 {
94  return m_identification;
95 }
96 
97 void DatagramHeader::setIdentification(const uint32_t& value)
98 {
99  m_identification = value;
100 }
101 
103 {
104  return m_fragment_offset;
105 }
106 
107 void DatagramHeader::setFragmentOffset(const uint32_t& value)
108 {
109  m_fragment_offset = value;
110 }
111 
112 } // namespace datastructure
113 } // namespace sick
uint32_t getFragmentOffset() const
Gets the fragment offset of the data.
DatagramHeader()
Constructor of the datagram header.
void setMinorVersion(const uint8_t &value)
Sets the minor version number.
void setProtocol(const uint16_t &value)
Sets the used protocol.
uint16_t getProtocol() const
Gets the used Protocol.
void setTotalLength(const uint32_t &value)
Sets the total length of the data packet.
void setDatagramMarker(const uint32_t &value)
Sets the datagram marker.
uint8_t getMajorVersion() const
Gets the major version number.
uint8_t getMinorVersion() const
Gets the minor version number.
void setMajorVersion(const uint8_t &value)
Sets the major version number.
uint32_t getIdentification() const
Gets the identification of the data.
void setIdentification(const uint32_t &value)
Sets the identification of the data.
uint32_t getTotalLength() const
Gets the total length of the data packet.
uint32_t getDatagramMarker() const
Gets the datagram marker.
void setFragmentOffset(const uint32_t &value)
Sets the fragment offset of the data.


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