Getter functions for the ETSI ITS MAPEM. More...
#include <etsi_its_msgs_utils/impl/asn1_primitives/asn1_primitives_getters.h>
#include <etsi_its_msgs_utils/impl/checks.h>
Go to the source code of this file.
Functions | |
std::vector< bool > | etsi_its_mapem_ts_msgs::access::getBitString (const std::vector< uint8_t > &buffer, const int bits_unused) |
Get a Bit String in form of bool vector. | |
template<typename T1, typename T2> | |
void | etsi_its_mapem_ts_msgs::access::throwIfOutOfRange (const T1 &val, const T2 &min, const T2 &max, const std::string val_desc) |
Throws an exception if a given value is out of a defined range. | |
void | etsi_its_mapem_ts_msgs::access::throwIfNotPresent (const bool is_present, const std::string val_desc) |
Throws an exception if the given value is not present. | |
MinuteOfTheYear | etsi_its_mapem_ts_msgs::access::getMinuteOfTheYear (const MapData &map) |
Get the value of MinuteOfTheYear object MapData object. | |
uint32_t | etsi_its_mapem_ts_msgs::access::getMinuteOfTheYearValue (const MapData &map) |
Get the value of MinuteOfTheYear value from MapData object. | |
MinuteOfTheYear | etsi_its_mapem_ts_msgs::access::getMinuteOfTheYear (const MAPEM &mapem) |
Get the value of MinuteOfTheYear object from mapem. | |
uint32_t | etsi_its_mapem_ts_msgs::access::getMinuteOfTheYearValue (const MAPEM &mapem) |
Get the value of MinuteOfTheYear value from mapem. | |
uint16_t | etsi_its_mapem_ts_msgs::access::getIntersectionID (const IntersectionID &intsct_id) |
Get the IntersectionID value. | |
uint16_t | etsi_its_mapem_ts_msgs::access::getIntersectionID (const IntersectionGeometry &intsct) |
Get the IntersectionId of an IntersectionGeometry object. | |
double | etsi_its_mapem_ts_msgs::access::getLatitude (const Latitude &latitude) |
Get the Latitude value. | |
double | etsi_its_mapem_ts_msgs::access::getLongitude (const Longitude &longitude) |
Get the Longitude value. | |
double | etsi_its_mapem_ts_msgs::access::getElevation (const Elevation &elevation) |
Get the Elevation value. | |
double | etsi_its_mapem_ts_msgs::access::getLatitude (const Position3D &ref_point) |
Get the Latitude value from a given Position3D object. | |
double | etsi_its_mapem_ts_msgs::access::getLongitude (const Position3D &ref_point) |
Get the Longitude value from a given Position3D object. | |
double | etsi_its_mapem_ts_msgs::access::getElevation (const Position3D &ref_point) |
Get the Elevation value from a given Position3D object. | |
std::vector< bool > | etsi_its_mapem_ts_msgs::access::getLaneDirection (const LaneDirection &lane_direction) |
Get the LaneDirection in form of bool vector. | |
std::vector< bool > | etsi_its_mapem_ts_msgs::access::getLaneDirection (const LaneAttributes &lane_attributes) |
Get the LaneDirection in form of bool vector from a LaneAttributes object. | |
std::vector< bool > | etsi_its_mapem_ts_msgs::access::getLaneDirection (const GenericLane &generic_lane) |
Get the LaneDirection in form of bool vector from a GenericLane object. | |
template<typename T> | |
gm::Point | etsi_its_mapem_ts_msgs::access::getPointFromNodeXY (const T &node_xy) |
Get the Point From NodeXY object. | |
Getter functions for the ETSI ITS MAPEM.
Definition in file mapem_ts_getters.h.
|
inline |
Get a Bit String in form of bool vector.
buffer | as uint8_t vector |
bits_unused | number of bits to ignore at the end of the bit string |
Definition at line 43 of file mapem_ts_getters.h.
|
inline |
Get the Elevation value.
elevation | object to get the Elevation value from |
Definition at line 152 of file mapem_ts_getters.h.
|
inline |
Get the Elevation value from a given Position3D object.
ref_point | Position3D object to get the Elevation value from |
Definition at line 182 of file mapem_ts_getters.h.
|
inline |
Get the IntersectionId of an IntersectionGeometry object.
intsct | IntersectionGeometry object |
Definition at line 122 of file mapem_ts_getters.h.
|
inline |
Get the IntersectionID value.
intsct_id | IntersectionID object to get the value from |
Definition at line 112 of file mapem_ts_getters.h.
|
inline |
Get the LaneDirection in form of bool vector from a GenericLane object.
generic_lane | GenericLane object to get the bool vector from |
Definition at line 213 of file mapem_ts_getters.h.
|
inline |
Get the LaneDirection in form of bool vector from a LaneAttributes object.
lane_attributes | LaneAttributes object to get the bool vector from |
Definition at line 203 of file mapem_ts_getters.h.
|
inline |
Get the LaneDirection in form of bool vector.
lane_direction | LaneDirection object to get the bool vector from |
Definition at line 193 of file mapem_ts_getters.h.
|
inline |
Get the Latitude value.
latitude | object to get the Latitude value from |
Definition at line 132 of file mapem_ts_getters.h.
|
inline |
Get the Latitude value from a given Position3D object.
ref_point | Position3D object to get the Latitude value from |
Definition at line 162 of file mapem_ts_getters.h.
|
inline |
Get the Longitude value.
longitude | object to get the Longitude value from |
Definition at line 142 of file mapem_ts_getters.h.
|
inline |
Get the Longitude value from a given Position3D object.
ref_point | Position3D object to get the Longitude value from |
Definition at line 172 of file mapem_ts_getters.h.
|
inline |
Get the value of MinuteOfTheYear object MapData object.
map | object to get the MinuteOfTheYear from |
Definition at line 70 of file mapem_ts_getters.h.
|
inline |
Get the value of MinuteOfTheYear object from mapem.
mapem | object to get the MinuteOfTheYear |
Definition at line 92 of file mapem_ts_getters.h.
|
inline |
Get the value of MinuteOfTheYear value from MapData object.
map | object to get the MinuteOfTheYear value from |
Definition at line 81 of file mapem_ts_getters.h.
|
inline |
Get the value of MinuteOfTheYear value from mapem.
mapem | object to get the MinuteOfTheYear value from |
Definition at line 102 of file mapem_ts_getters.h.
|
inline |
Get the Point From NodeXY object.
T | representing different NodeXY types (NodeXY20b, NodeXY22b...) |
node_xy | the NodeXY object |
Definition at line 225 of file mapem_ts_getters.h.
|
inline |
Throws an exception if the given value is not present.
is_present | Whether the value is present. |
val_desc | Description of the value for the exception message. |
Definition at line 58 of file mapem_ts_getters.h.
void etsi_its_mapem_ts_msgs::access::throwIfOutOfRange | ( | const T1 & | val, |
const T2 & | min, | ||
const T2 & | max, | ||
const std::string | val_desc ) |
Throws an exception if a given value is out of a defined range.
T1 | |
T2 |
val | The value to check if it is in the range. |
min | The minimum value of the range. |
max | The maximum value of the range. |
val_desc | Description of the value for the exception message. |
Definition at line 47 of file mapem_ts_getters.h.