Vanetza
 
Loading...
Searching...
No Matches
shb_header.hpp
1#ifndef SHB_HEADER_HPP_MRLDRPNK
2#define SHB_HEADER_HPP_MRLDRPNK
3
4#include <vanetza/geonet/dcc_field.hpp>
5#include <vanetza/geonet/position_vector.hpp>
6#include <cstdint>
7
8namespace vanetza
9{
10namespace geonet
11{
12
14{
15 ShbHeader();
16
17 static constexpr std::size_t length_bytes = 4 + LongPositionVector::length_bytes;
18
19 LongPositionVector source_position;
20 DccField dcc; /* < this field is "reserved" in 102 636-4-1 */
21};
22
23void serialize(const ShbHeader&, OutputArchive&);
24void deserialize(ShbHeader&, InputArchive&);
25
26} // namespace geonet
27} // namespace vanetza
28
29#endif /* SHB_HEADER_HPP_MRLDRPNK */
30