AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
|
A class that associates a NAME parameter with a value of that parameter. More...
#include <can_NAME_filter.hpp>
Public Member Functions | |
NAMEFilter (NAME::NAMEParameters nameParameter, std::uint32_t parameterMatchValue) | |
Constructor for the NAMEFilter. | |
NAME::NAMEParameters | get_parameter () const |
Returns the parameter data associated with this filter. | |
std::uint32_t | get_value () const |
Returns the value associated with this filter. | |
bool | check_name_matches_filter (const NAME &nameToCompare) const |
Returns true if a NAME matches this filter class's components. | |
Private Attributes | |
NAME::NAMEParameters | parameter |
The NAME component to filter against. | |
std::uint32_t | value |
The value of the data associated with the filter component. | |
A class that associates a NAME parameter with a value of that parameter.
This class is used to match a partner control function with specific criteria that defines it. Use these to define what device you want to talk to.
Definition at line 25 of file can_NAME_filter.hpp.
isobus::NAMEFilter::NAMEFilter | ( | NAME::NAMEParameters | nameParameter, |
std::uint32_t | parameterMatchValue ) |
Constructor for the NAMEFilter.
[in] | nameParameter | The component of the NAME to filter on |
[in] | parameterMatchValue | The value to match with the nameParameter |
Definition at line 14 of file can_NAME_filter.cpp.
bool isobus::NAMEFilter::check_name_matches_filter | ( | const NAME & | nameToCompare | ) | const |
Returns true if a NAME matches this filter class's components.
[in] | nameToCompare | A NAME to compare against this filter |
Definition at line 30 of file can_NAME_filter.cpp.
NAME::NAMEParameters isobus::NAMEFilter::get_parameter | ( | ) | const |
Returns the parameter data associated with this filter.
Definition at line 20 of file can_NAME_filter.cpp.
std::uint32_t isobus::NAMEFilter::get_value | ( | ) | const |
Returns the value associated with this filter.
Definition at line 25 of file can_NAME_filter.cpp.
|
private |
The NAME component to filter against.
Definition at line 47 of file can_NAME_filter.hpp.
|
private |
The value of the data associated with the filter component.
Definition at line 48 of file can_NAME_filter.hpp.