Setter 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. | |
void | etsi_its_spatem_ts_msgs::access::setIntersectionID (IntersectionID &intsct_id, const uint16_t id) |
Sets the IntersectionID value. | |
void | etsi_its_spatem_ts_msgs::access::setIntersectionID (IntersectionReferenceID &intsct_ref_id, const uint16_t id) |
Sets the IntersectionID value in an IntersectionReferenceID object. | |
void | etsi_its_spatem_ts_msgs::access::setIntersectionID (IntersectionState &intsct, const uint16_t id) |
Sets the IntersectionID value in an IntersectionState object. | |
void | etsi_its_spatem_ts_msgs::access::setMinuteOfTheYear (MinuteOfTheYear &moy, const uint32_t moy_value) |
Sets the MinuteOfTheYear value. | |
void | etsi_its_spatem_ts_msgs::access::setMinuteOfTheYear (IntersectionState &intsct, const uint32_t moy_value) |
Sets the MinuteOfTheYear value in an IntersectionState object. | |
void | etsi_its_spatem_ts_msgs::access::setDSecond (DSecond &dsecond, const uint32_t dsecond_value) |
Sets the DSecond value. | |
void | etsi_its_spatem_ts_msgs::access::setDSecond (DSecond &dsecond, const double dsecond_value) |
Sets the DSecond value using a double. | |
void | etsi_its_spatem_ts_msgs::access::setDSecond (IntersectionState &intsct, const uint32_t dsecond_value) |
Sets the DSecond value in an IntersectionState object. | |
void | etsi_its_spatem_ts_msgs::access::setDSecond (IntersectionState &intsct, const double dsecond_value) |
Sets the DSecond value in an IntersectionState object using a double. | |
void | etsi_its_spatem_ts_msgs::access::setSignalGroupID (SignalGroupID &signal_group_id, const uint8_t id) |
Sets the SignalGroupID value. | |
void | etsi_its_spatem_ts_msgs::access::setSignalGroupID (MovementState &movement_state, const uint8_t id) |
Sets the SignalGroupID value in a MovementState object. | |
Setter functions for the ETSI ITS SPATEM.
Definition in file spatem_ts_setters.h.
|
inline |
Sets the DSecond value using a double.
dsecond | The DSecond object to set. |
dsecond_value | The value to set in seconds. |
std::out_of_range | if the dsecond_value is out of the valid range. |
Definition at line 141 of file spatem_ts_setters.h.
|
inline |
Sets the DSecond value.
dsecond | The DSecond object to set. |
dsecond_value | The value to set. |
std::out_of_range | if the dsecond_value is out of the valid range. |
Definition at line 129 of file spatem_ts_setters.h.
|
inline |
Sets the DSecond value in an IntersectionState object using a double.
intsct | The IntersectionState object to set. |
dsecond_value | The value to set in seconds. |
std::out_of_range | if the dsecond_value is out of the valid range. |
Definition at line 165 of file spatem_ts_setters.h.
|
inline |
Sets the DSecond value in an IntersectionState object.
intsct | The IntersectionState object to set. |
dsecond_value | The value to set. |
std::out_of_range | if the dsecond_value is out of the valid range. |
Definition at line 153 of file spatem_ts_setters.h.
|
inline |
Sets the IntersectionID value.
intsct_id | The IntersectionID object to set. |
id | The value to set. |
std::out_of_range | if the id is out of the valid range. |
Definition at line 71 of file spatem_ts_setters.h.
|
inline |
Sets the IntersectionID value in an IntersectionReferenceID object.
intsct_ref_id | The IntersectionReferenceID object to set. |
id | The value to set. |
std::out_of_range | if the id is out of the valid range. |
Definition at line 83 of file spatem_ts_setters.h.
|
inline |
Sets the IntersectionID value in an IntersectionState object.
intsct | The IntersectionState object to set. |
id | The value to set. |
std::out_of_range | if the id is out of the valid range. |
Definition at line 94 of file spatem_ts_setters.h.
|
inline |
Sets the MinuteOfTheYear value in an IntersectionState object.
intsct | The IntersectionState object to set. |
moy_value | The value to set. |
std::out_of_range | if the moy_value is out of the valid range. |
Definition at line 117 of file spatem_ts_setters.h.
|
inline |
Sets the MinuteOfTheYear value.
moy | The MinuteOfTheYear object to set. |
moy_value | The value to set. |
std::out_of_range | if the moy_value is out of the valid range. |
Definition at line 105 of file spatem_ts_setters.h.
|
inline |
Sets the SignalGroupID value in a MovementState object.
movement_state | The MovementState object to set. |
id | The value to set. |
std::out_of_range | if the id is out of the valid range. |
Definition at line 189 of file spatem_ts_setters.h.
|
inline |
Sets the SignalGroupID value.
signal_group_id | The SignalGroupID object to set. |
id | The value to set. |
std::out_of_range | if the id is out of the valid range. |
Definition at line 177 of file spatem_ts_setters.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.