5 #ifndef VIL_NITF2_FIELD_FUNCTOR_H 6 #define VIL_NITF2_FIELD_FUNCTOR_H 18 # include <vcl_msvc_warnings.h> 89 bool success = record->
get_value(
tag, indexes, value,
true);
92 typename std::map<T, T>::const_iterator it =
overrides.find( value );
240 typename std::vector<T>::iterator it;
286 if (choose_tag_1)
return record->
get_value(
tag_1, indexes, value,
true);
323 #endif // VIL_NITF2_FIELD_FUNCTOR_H Functor vil_nitf2_field_value_one_of defines a predicate that sets its out parameter to true iff the ...
Functor vil_nitf2_max_field_value_plus_offset_and_threshold defines a function that sets its out para...
Functor vil_nitf2_field_value defines a function that sets its out parameter to a value of a field fr...
vil_nitf2_field_functor< int > * copy() const override
vil_nitf2_field_functor< int > * copy() const override
bool operator()(vil_nitf2_field_sequence *, const vil_nitf2_index_vector &, T &value) override
vil_nitf2_field_value(std::string tag, std::map< T, T > overrideMap)
vil_nitf2_field_functor< bool > * copy() const override
vil_nitf2_field_value_greater_than(std::string tag, T threshold)
vil_nitf2_field_value_one_of(std::string tag, T acceptable_value)
Constructor to specify only one acceptable value.
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, bool &result) override
virtual bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &out_value)=0
virtual ~vil_nitf2_field_functor()=default
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, int &value) override
vil_nitf2_field_functor< T > * copy() const override
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, bool &result) override
std::vector< T > acceptable_values
virtual vil_nitf2_field_functor< T > * copy() const =0
vil_nitf2_field_functor< bool > * copy() const override
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &value) override
vil_nitf2_multiply_field_values(std::string tag_1, std::string tag_2, bool use_zero_if_tag_not_found=false)
~vil_nitf2_constant_functor() override=default
bool use_zero_if_tag_not_found
vil_nitf2_field_value(std::string tag)
vil_nitf2_field_functor< T > * copy() const override
vil_nitf2_field_functor< bool > * choose_tag_1_predicate
~vil_nitf2_choose_field_value() override
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &value) override
vil_nitf2_constant_functor * copy() const override
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, int &value) override
Functor vil_nitf2_choose_field_value defines a function that sets its out parameter to a value of one...
vil_nitf2_field_specified(std::string tag)
vil_nitf2_max_field_value_plus_offset_and_threshold(std::string tag, int offset, int min_threshold=0, int tag_factor=1)
vil_nitf2_field_value_one_of(std::string tag, std::vector< T > acceptable_values)
Constructor to specify a std::vector of acceptable values.
bool operator()(vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, bool &result) override
bool get_value(std::string tag, int &out_value) const
vil_nitf2_constant_functor(T value)
Functor vil_nitf2_multiply_field_values defines a function that sets its out parameter to the product...
Functor vil_nitf2_field_value_greater_than defines a comparison predicate that sets its out parameter...
std::map< T, T > overrides
vil_nitf2_field_functor< bool > * copy() const override
vil_nitf2_choose_field_value(std::string tag_1, std::string tag_2, vil_nitf2_field_functor< bool > *choose_tag_1_predicate)
Constructor. I take ownership of inDecider.
Functor vil_nitf2_field_specified defines a comparison predicate that sets its out parameter to true ...