Functor vil_nitf2_choose_field_value defines a function that sets its out parameter to a value of one of two fields of a field sequence. More...
#include <vil_nitf2_field_functor.h>
Public Member Functions | |
vil_nitf2_choose_field_value (const vcl_string &tag_1, const vcl_string &tag_2, vil_nitf2_field_functor< bool > *choose_tag_1_predicate) | |
Constructor. I take ownership of inDecider. | |
vil_nitf2_field_functor< T > * | copy () const |
virtual | ~vil_nitf2_choose_field_value () |
bool | operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &value) |
Private Attributes | |
vcl_string | tag_1 |
vcl_string | tag_2 |
vil_nitf2_field_functor< bool > * | choose_tag_1_predicate |
Functor vil_nitf2_choose_field_value defines a function that sets its out parameter to a value of one of two fields of a field sequence.
The field chosen is determined by the evaluating the functor passed as argument 'choose_tag_1_predicate': tag_1 is chosen if it evaluates to true; tag_2, otherwise.
Definition at line 262 of file vil_nitf2_field_functor.h.
vil_nitf2_choose_field_value< T >::vil_nitf2_choose_field_value | ( | const vcl_string & | tag_1, |
const vcl_string & | tag_2, | ||
vil_nitf2_field_functor< bool > * | choose_tag_1_predicate | ||
) | [inline] |
Constructor. I take ownership of inDecider.
Definition at line 266 of file vil_nitf2_field_functor.h.
virtual vil_nitf2_choose_field_value< T >::~vil_nitf2_choose_field_value | ( | ) | [inline, virtual] |
Definition at line 274 of file vil_nitf2_field_functor.h.
vil_nitf2_field_functor<T>* vil_nitf2_choose_field_value< T >::copy | ( | ) | const [inline, virtual] |
Implements vil_nitf2_field_functor< T >.
Definition at line 270 of file vil_nitf2_field_functor.h.
bool vil_nitf2_choose_field_value< T >::operator() | ( | vil_nitf2_field_sequence * | record, |
const vil_nitf2_index_vector & | indexes, | ||
T & | value | ||
) | [inline, virtual] |
Implements vil_nitf2_field_functor< T >.
Definition at line 278 of file vil_nitf2_field_functor.h.
vil_nitf2_field_functor<bool>* vil_nitf2_choose_field_value< T >::choose_tag_1_predicate [private] |
Definition at line 290 of file vil_nitf2_field_functor.h.
vcl_string vil_nitf2_choose_field_value< T >::tag_1 [private] |
Definition at line 288 of file vil_nitf2_field_functor.h.
vcl_string vil_nitf2_choose_field_value< T >::tag_2 [private] |
Definition at line 289 of file vil_nitf2_field_functor.h.