| synopsis || return value || arguments || prev || next |

kdu_params::compare

Java: Kdu_params::Compare

Overload navigation: 1, 2, 3

bool compare( const char * name, int record_idx, int field_idx, int value)

Java: boolean Compare( String name, int record_idx, int field_idx, int value)

[Declared in "../coresys/common/kdu_params.h"]

Go to class description.


Synopsis

Convenience inlined function which collapses a call to get with a comparison of the result with the supplied integer value. The function substantially simplifies the process of writing code-stream marker segments, which can often be avoided if all attributes are identical to those of another object in the inheritance chain of the same cluster.


Return Value

False if the call to get fails (returns false), or the call to get succeeds, but the retrieved value is not identical to the value argument.

Arguments

name [const char *]

Passed through to get.

record_idx [int]

Passed through to get.

field_idx [int]

Passed through to get.

value [int]

The value to be compared.


| top || synopsis || return value || arguments || prev || next |