1#ifndef GEONET_ADDRESS_HPP_MB8J1IVQ
2#define GEONET_ADDRESS_HPP_MB8J1IVQ
4#include <vanetza/common/bit_number.hpp>
5#include <vanetza/net/mac_address.hpp>
6#include <vanetza/geonet/serialization.hpp>
7#include <vanetza/geonet/station_type.hpp>
19 static constexpr std::size_t length_bytes = 8;
23 bool is_manually_configured()
const {
return m_manually_configured; }
24 void is_manually_configured(
bool flag) { m_manually_configured = flag; }
25 StationType station_type()
const {
return m_station_type; }
26 void station_type(StationType type) { m_station_type = type; }
29 const MacAddress& mid()
const {
return m_mid; }
30 void mid(
const MacAddress& mid) { m_mid = mid; }
32 bool operator==(
const Address& other)
const;
33 bool operator!=(
const Address& other)
const;
36 bool m_manually_configured;
37 StationType m_station_type;
52struct hash<vanetza::geonet::Address>