#include <vil_nitf2_field_formatter.h>
Public Member Functions | |
vil_nitf2_field_formatter (vil_nitf2::enum_field_type field_type, int field_width) | |
virtual | ~vil_nitf2_field_formatter () |
virtual vil_nitf2_field_formatter * | copy () const =0 |
virtual vil_nitf2_scalar_field * | read_field (vil_nitf2_istream &input, bool &out_blank)=0 |
virtual vil_nitf2_array_field * | create_array_field (int num_dimensions, vil_nitf2_field_definition *)=0 |
virtual bool | write_field (vil_nitf2_ostream &output, const vil_nitf2_scalar_field *field)=0 |
bool | write_blank (vcl_ostream &output) |
bool | write_blank (vil_stream &output) |
Static Public Member Functions | |
static char * | read_char_array (vcl_istream &input, int length) |
static bool | read_c_str (vcl_istream &input, int length, char *&out_cstr, bool &all_blank) |
static vcl_string | read_string (vcl_istream &input, int length) |
static vcl_string | read_string (vil_stream &input, int length) |
static bool | check_sign (const char *cstr, bool show_sign) |
static bool | is_all_blank (const char *cstr) |
Public Attributes | |
vil_nitf2::enum_field_type | field_type |
int | field_width |
Definition at line 37 of file vil_nitf2_field_formatter.h.
vil_nitf2_field_formatter::vil_nitf2_field_formatter | ( | vil_nitf2::enum_field_type | field_type, |
int | field_width | ||
) | [inline] |
Definition at line 45 of file vil_nitf2_field_formatter.h.
virtual vil_nitf2_field_formatter::~vil_nitf2_field_formatter | ( | ) | [inline, virtual] |
Definition at line 49 of file vil_nitf2_field_formatter.h.
bool vil_nitf2_field_formatter::check_sign | ( | const char * | cstr, |
bool | show_sign | ||
) | [static] |
Definition at line 72 of file vil_nitf2_field_formatter.cxx.
virtual vil_nitf2_field_formatter* vil_nitf2_field_formatter::copy | ( | ) | const [pure virtual] |
Implemented in vil_nitf2_tagged_record_sequence_formatter, vil_nitf2_location_formatter, vil_nitf2_date_time_formatter, vil_nitf2_enum_string_formatter, vil_nitf2_string_formatter, vil_nitf2_binary_formatter, vil_nitf2_char_formatter, vil_nitf2_exponential_formatter, vil_nitf2_double_formatter, vil_nitf2_long_long_formatter, and vil_nitf2_integer_formatter.
virtual vil_nitf2_array_field* vil_nitf2_field_formatter::create_array_field | ( | int | num_dimensions, |
vil_nitf2_field_definition * | |||
) | [pure virtual] |
Implemented in vil_nitf2_typed_field_formatter< T >, vil_nitf2_typed_field_formatter< vil_nitf2_long >, vil_nitf2_typed_field_formatter< double >, vil_nitf2_typed_field_formatter< int >, vil_nitf2_typed_field_formatter< vcl_string >, vil_nitf2_typed_field_formatter< char >, vil_nitf2_typed_field_formatter< void * >, vil_nitf2_typed_field_formatter< vil_nitf2_date_time >, vil_nitf2_typed_field_formatter< vil_nitf2_tagged_record_sequence >, and vil_nitf2_typed_field_formatter< vil_nitf2_location * >.
bool vil_nitf2_field_formatter::is_all_blank | ( | const char * | cstr | ) | [static] |
Definition at line 63 of file vil_nitf2_field_formatter.cxx.
bool vil_nitf2_field_formatter::read_c_str | ( | vcl_istream & | input, |
int | length, | ||
char *& | out_cstr, | ||
bool & | all_blank | ||
) | [static] |
Definition at line 41 of file vil_nitf2_field_formatter.cxx.
char * vil_nitf2_field_formatter::read_char_array | ( | vcl_istream & | input, |
int | length | ||
) | [static] |
Definition at line 15 of file vil_nitf2_field_formatter.cxx.
virtual vil_nitf2_scalar_field* vil_nitf2_field_formatter::read_field | ( | vil_nitf2_istream & | input, |
bool & | out_blank | ||
) | [pure virtual] |
Implemented in vil_nitf2_typed_field_formatter< T >, vil_nitf2_typed_field_formatter< vil_nitf2_long >, vil_nitf2_typed_field_formatter< double >, vil_nitf2_typed_field_formatter< int >, vil_nitf2_typed_field_formatter< vcl_string >, vil_nitf2_typed_field_formatter< char >, vil_nitf2_typed_field_formatter< void * >, vil_nitf2_typed_field_formatter< vil_nitf2_date_time >, vil_nitf2_typed_field_formatter< vil_nitf2_tagged_record_sequence >, and vil_nitf2_typed_field_formatter< vil_nitf2_location * >.
vcl_string vil_nitf2_field_formatter::read_string | ( | vcl_istream & | input, |
int | length | ||
) | [static] |
Definition at line 23 of file vil_nitf2_field_formatter.cxx.
vcl_string vil_nitf2_field_formatter::read_string | ( | vil_stream & | input, |
int | length | ||
) | [static] |
Definition at line 31 of file vil_nitf2_field_formatter.cxx.
bool vil_nitf2_field_formatter::write_blank | ( | vcl_ostream & | output | ) |
Definition at line 49 of file vil_nitf2_field_formatter.cxx.
bool vil_nitf2_field_formatter::write_blank | ( | vil_stream & | output | ) |
Definition at line 56 of file vil_nitf2_field_formatter.cxx.
virtual bool vil_nitf2_field_formatter::write_field | ( | vil_nitf2_ostream & | output, |
const vil_nitf2_scalar_field * | field | ||
) | [pure virtual] |
Implemented in vil_nitf2_typed_field_formatter< T >, vil_nitf2_typed_field_formatter< vil_nitf2_long >, vil_nitf2_typed_field_formatter< double >, vil_nitf2_typed_field_formatter< int >, vil_nitf2_typed_field_formatter< vcl_string >, vil_nitf2_typed_field_formatter< char >, vil_nitf2_typed_field_formatter< void * >, vil_nitf2_typed_field_formatter< vil_nitf2_date_time >, vil_nitf2_typed_field_formatter< vil_nitf2_tagged_record_sequence >, and vil_nitf2_typed_field_formatter< vil_nitf2_location * >.
Definition at line 42 of file vil_nitf2_field_formatter.h.
Definition at line 43 of file vil_nitf2_field_formatter.h.