Functor vil_nitf2_field_value defines a function that sets its out parameter to a value of a field from a field sequence. More...
#include <vil_nitf2_field_functor.h>

Public Member Functions | |
| vil_nitf2_field_value (std::string tag) | |
| vil_nitf2_field_value (std::string tag, std::map< T, T > overrideMap) | |
| vil_nitf2_field_functor< T > * | copy () const override |
| bool | operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &value) override |
Private Attributes | |
| std::string | tag |
| std::map< T, T > | overrides |
Functor vil_nitf2_field_value defines a function that sets its out parameter to a value of a field from a field sequence.
The function returns whether the field was found. The functor is instantiated with the field's tag. The field sequence is passed to the function.
You can override any value by specifying an overrideMap. For example, if 0 was a special value that actually meant 1 but all other values (2, 3, 4...) actually meant when they were you could get that effect like this: std::map< int, int > overrides; overrides.insert( std::make_pair( 0, 1 ) ); new vil_nitf2_field_value( "FIELD_NAME", overrides );
Definition at line 75 of file vil_nitf2_field_functor.h.
|
inline |
Definition at line 78 of file vil_nitf2_field_functor.h.
|
inline |
Definition at line 80 of file vil_nitf2_field_functor.h.
|
inlineoverridevirtual |
Implements vil_nitf2_field_functor< T >.
Definition at line 83 of file vil_nitf2_field_functor.h.
|
inlineoverridevirtual |
Implements vil_nitf2_field_functor< T >.
Definition at line 86 of file vil_nitf2_field_functor.h.
|
private |
Definition at line 103 of file vil_nitf2_field_functor.h.
|
private |
Definition at line 102 of file vil_nitf2_field_functor.h.
1.8.15