JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Component/ValidValuesSpec.H>
Finite list valid values spec, everything listed at construction is valid, anything else is not.
Definition at line 87 of file ValidValuesSpec.H.
Public Member Functions | |
ValidValuesSpecList ()=delete | |
No default constructor, always need to provide a list. | |
ValidValuesSpecList (std::vector< T > const &valid_list) | |
Construct from a given list of valid values in a vector. | |
virtual | ~ValidValuesSpecList () |
Destructor. | |
virtual bool | checkValueValidity (T const &val) const |
Check whether a proposed value is valid, returns true iff value is in our list. | |
virtual std::string const | str () const |
Convert to a readable string. | |
Public Member Functions inherited from jevois::ValidValuesSpecBase< T > | |
ValidValuesSpecBase () | |
Construct, for the base class this is a no-op. | |
virtual | ~ValidValuesSpecBase () |
Destructor. | |
Protected Attributes | |
std::vector< T > const | itsValidList |
Our list of valid values. | |
|
delete |
No default constructor, always need to provide a list.
|
explicit |
Construct from a given list of valid values in a vector.
|
virtual |
Destructor.
|
virtual |
Check whether a proposed value is valid, returns true iff value is in our list.
Implements jevois::ValidValuesSpecBase< T >.
|
virtual |
Convert to a readable string.
Returns List:[A|B|C] where A, B, C are replaced by the actual elements.
Implements jevois::ValidValuesSpecBase< T >.
|
protected |
Our list of valid values.
Definition at line 107 of file ValidValuesSpec.H.