Getter functions for the ETSI ITS SPATEM. More...
#include <etsi_its_msgs_utils/impl/checks.h>
Go to the source code of this file.
Functions | |
template<typename T1, typename T2> | |
void | etsi_its_spatem_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_spatem_ts_msgs::access::throwIfNotPresent (const bool is_present, const std::string val_desc) |
Throws an exception if the given value is not present. | |
uint16_t | etsi_its_spatem_ts_msgs::access::getIntersectionID (const IntersectionID &intsct_id) |
Get the intersection-id. | |
uint16_t | etsi_its_spatem_ts_msgs::access::getIntersectionID (const IntersectionReferenceID &intsct_ref_id) |
Get the intersection-id of an IntersectionReferenceID object. | |
uint16_t | etsi_its_spatem_ts_msgs::access::getIntersectionID (const IntersectionState &intsct) |
Get the intersection-id of an IntersectionState object. | |
MinuteOfTheYear | etsi_its_spatem_ts_msgs::access::getMinuteOfTheYear (const IntersectionState &intsct) |
Get the MinuteOfTheYear object from a given IntersectionState object. | |
DSecond | etsi_its_spatem_ts_msgs::access::getDSecond (const IntersectionState &intsct) |
Get the DSecond object from a given IntersectionState object. | |
double | etsi_its_spatem_ts_msgs::access::getDSecondValue (const DSecond &dsecond) |
Get the value of a DSecond object in seconds. | |
double | etsi_its_spatem_ts_msgs::access::getDSecondValue (const IntersectionState &intsct) |
Get the value of an DSecond object from a given IntersectionState object. | |
uint8_t | etsi_its_spatem_ts_msgs::access::getSignalGroupID (const SignalGroupID &signal_group_id) |
Get the Signal Group-ID of an SignalGroupID object. | |
uint8_t | etsi_its_spatem_ts_msgs::access::getSignalGroupID (const MovementState &mvmt_state) |
Get the Signal Group-ID of an MovementState object. | |
MovementEvent | etsi_its_spatem_ts_msgs::access::getCurrentMovementEvent (const MovementState &mvmt_state) |
Get the current MovementEvent of a given MovementState object. | |
MovementPhaseState | etsi_its_spatem_ts_msgs::access::getCurrentMovementPhaseState (const MovementState &mvmt_state) |
Get the Current MovementPhaseState object of a given MovementState object. | |
uint8_t | etsi_its_spatem_ts_msgs::access::getCurrentMovementPhaseStateValue (const MovementState &mvmt_state) |
Get the Current MovementPhaseState object of a given MovementState object. | |
Getter functions for the ETSI ITS SPATEM.
Definition in file spatem_ts_getters.h.
|
inline |
Get the current MovementEvent of a given MovementState object.
mvmt_event | MovementState object to get the MovementEvent from |
Definition at line 162 of file spatem_ts_getters.h.
|
inline |
Get the Current MovementPhaseState object of a given MovementState object.
mvmt_state | MovementState object to get the MovementPhaseState from |
Definition at line 175 of file spatem_ts_getters.h.
|
inline |
Get the Current MovementPhaseState object of a given MovementState object.
mvmt_state | MovementState object to get the MovementPhaseState from |
Definition at line 185 of file spatem_ts_getters.h.
|
inline |
Get the DSecond object from a given IntersectionState object.
intsct | IntersectionState object to get the DSecond from |
Definition at line 111 of file spatem_ts_getters.h.
|
inline |
Get the value of a DSecond object in seconds.
dsecond | DSecond object to get the value from |
Definition at line 122 of file spatem_ts_getters.h.
|
inline |
Get the value of an DSecond object from a given IntersectionState object.
intsct |
Definition at line 132 of file spatem_ts_getters.h.
|
inline |
Get the intersection-id.
intsct_id | intersection-id object to get the value from |
Definition at line 70 of file spatem_ts_getters.h.
|
inline |
Get the intersection-id of an IntersectionReferenceID object.
intsct_ref_id | IntersectionReferenceID object |
Definition at line 80 of file spatem_ts_getters.h.
|
inline |
Get the intersection-id of an IntersectionState object.
intsct | IntersectionState object |
Definition at line 90 of file spatem_ts_getters.h.
|
inline |
Get the MinuteOfTheYear object from a given IntersectionState object.
intsct | IntersectionState object to get the MinuteOfTheYear from |
Definition at line 100 of file spatem_ts_getters.h.
|
inline |
Get the Signal Group-ID of an MovementState object.
mvmt_state | MovementState object to get the id from |
Definition at line 152 of file spatem_ts_getters.h.
|
inline |
Get the Signal Group-ID of an SignalGroupID object.
signal_group_id | SignalGroupID object to get the id from |
Definition at line 142 of file spatem_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 spatem_ts_getters.h.
void etsi_its_spatem_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 spatem_ts_getters.h.