Go to the source code of this file.
Define Documentation
#define NITF_FIELD_SEQ_GET_ARRAY_VALUE |
( |
|
T | ) |
|
Value:bool vil_nitf2_field_sequence::get_value(vcl_string tag, \
const vil_nitf2_index_vector& indexes, \
T& out_value, \
bool ignore_extra_indexes) const { \
vil_nitf2_field* field = get_field(tag); \
if (!field) { \
\
return false; \
} \
vil_nitf2_index_vector trimmed_indexes(indexes); \
if (ignore_extra_indexes && (int)indexes.size() > field->num_dimensions()) { \
trimmed_indexes.resize(field->num_dimensions()); \
} \
if (trimmed_indexes.size()==0) { \
return field->scalar_field() && field->scalar_field()->value(out_value); \
} else { \
return field->array_field()->value(trimmed_indexes, out_value); \
} \
}
Definition at line 399 of file vil_nitf2_field_sequence.cxx.
#define NITF_FIELD_SEQ_GET_VALUE |
( |
|
T | ) |
|
Value:bool vil_nitf2_field_sequence::get_value(vcl_string tag, T& out_value) const { \
vil_nitf2_field* field = get_field(tag); \
vil_nitf2_scalar_field* scalar_field = field ? field->scalar_field() : 0; \
if (!scalar_field) { \
\
return false; \
} \
if (!scalar_field->value(out_value)) { \
vcl_cerr << "vil_nitf2_field_sequence::get_value(" << tag << ") called with wrong type.\n"; \
return false; \
} \
return true; \
}
Definition at line 375 of file vil_nitf2_field_sequence.cxx.
#define NITF_FIELD_SEQ_GET_VALUES |
( |
|
T | ) |
|