Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
vil_nitf2_field_sequence Class Reference

#include <vil_nitf2_field_sequence.h>

Public Member Functions

 vil_nitf2_field_sequence (const vil_nitf2_field_definitions &field_definitions)
 
virtual ~vil_nitf2_field_sequence ()
 
bool get_value (std::string tag, int &out_value) const
 
bool get_value (std::string tag, double &out_value) const
 
bool get_value (std::string tag, char &out_value) const
 
bool get_value (std::string tag, void *&out_value) const
 
bool get_value (std::string tag, std::string &out_value) const
 
bool get_value (std::string tag, vil_nitf2_location *&out_value) const
 
bool get_value (std::string tag, vil_nitf2_date_time &out_value) const
 
bool get_value (std::string tag, vil_nitf2_tagged_record_sequence &out_value) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, int &out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, double &out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, char &out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, void *&out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, std::string &out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, vil_nitf2_location *&out_value, bool ignore_extra_indexes=false) const
 
bool get_value (std::string tag, const vil_nitf2_index_vector &indexes, vil_nitf2_date_time &out_value, bool ignore_extra_indexes=false) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< int > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< double > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< char > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< void * > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< std::string > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< vil_nitf2_location * > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, const vil_nitf2_index_vector &indexes, std::vector< vil_nitf2_date_time > &out_values, bool clear_out_values=true) const
 
bool get_values (std::string tag, std::vector< int > &out_values) const
 
bool get_values (std::string tag, std::vector< double > &out_values) const
 
bool get_values (std::string tag, std::vector< char > &out_values) const
 
bool get_values (std::string tag, std::vector< void * > &out_values) const
 
bool get_values (std::string tag, std::vector< std::string > &out_values) const
 
bool get_values (std::string tag, std::vector< vil_nitf2_location * > &out_values) const
 
bool get_values (std::string tag, std::vector< vil_nitf2_date_time > &out_values) const
 
vil_nitf2_fieldget_field (const std::string &tag) const
 
bool read (vil_nitf2_istream &input, const vil_nitf2_field_definitions *field_defs=nullptr, const vil_nitf2_index_vector &indexes=vil_nitf2_index_vector())
 
virtual bool write (vil_nitf2_ostream &, const vil_nitf2_field_definitions *field_defs=nullptr, vil_nitf2_index_vector indexes=vil_nitf2_index_vector())
 
bool create_array_fields (const vil_nitf2_field_definitions *field_defs, int num_dimensions)
 
void set_array_fields_dimension (const vil_nitf2_field_definitions *field_defs, const vil_nitf2_index_vector &index, int repeat_count)
 
vil_nitf2_field_definitionfind_field_definition (const std::string &tag)
 
virtual vil_nitf2_field::field_treeget_tree (vil_nitf2_field::field_tree *tr=nullptr) const
 

Private Types

typedef std::map< std::string, vil_nitf2_field * > field_map
 

Private Member Functions

void insert_field (const std::string &str, vil_nitf2_field *field)
 

Private Attributes

field_map fields
 
std::vector< vil_nitf2_field * > fields_vector
 
const vil_nitf2_field_definitionsm_field_definitions
 

Detailed Description

Definition at line 30 of file vil_nitf2_field_sequence.h.

Member Typedef Documentation

◆ field_map

typedef std::map<std::string, vil_nitf2_field*> vil_nitf2_field_sequence::field_map
private

Definition at line 164 of file vil_nitf2_field_sequence.h.

Constructor & Destructor Documentation

◆ vil_nitf2_field_sequence()

vil_nitf2_field_sequence::vil_nitf2_field_sequence ( const vil_nitf2_field_definitions field_definitions)
inline

Definition at line 34 of file vil_nitf2_field_sequence.h.

◆ ~vil_nitf2_field_sequence()

vil_nitf2_field_sequence::~vil_nitf2_field_sequence ( )
virtual

Definition at line 354 of file vil_nitf2_field_sequence.cxx.

Member Function Documentation

◆ create_array_fields()

bool vil_nitf2_field_sequence::create_array_fields ( const vil_nitf2_field_definitions field_defs,
int  num_dimensions 
)

Definition at line 35 of file vil_nitf2_field_sequence.cxx.

◆ find_field_definition()

vil_nitf2_field_definition * vil_nitf2_field_sequence::find_field_definition ( const std::string &  tag)

Definition at line 489 of file vil_nitf2_tagged_record.cxx.

◆ get_field()

vil_nitf2_field * vil_nitf2_field_sequence::get_field ( const std::string &  tag) const

Definition at line 364 of file vil_nitf2_field_sequence.cxx.

◆ get_tree()

vil_nitf2_field::field_tree * vil_nitf2_field_sequence::get_tree ( vil_nitf2_field::field_tree tr = nullptr) const
virtual

Definition at line 19 of file vil_nitf2_field_sequence.cxx.

◆ get_value() [1/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
int &  out_value 
) const

◆ get_value() [2/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
double &  out_value 
) const

◆ get_value() [3/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
char &  out_value 
) const

◆ get_value() [4/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
void *&  out_value 
) const

◆ get_value() [5/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
std::string &  out_value 
) const

◆ get_value() [6/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
vil_nitf2_location *&  out_value 
) const

◆ get_value() [7/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
vil_nitf2_date_time out_value 
) const

◆ get_value() [8/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
vil_nitf2_tagged_record_sequence out_value 
) const

◆ get_value() [9/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
int &  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [10/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
double &  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [11/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
char &  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [12/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
void *&  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [13/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::string &  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [14/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
vil_nitf2_location *&  out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_value() [15/15]

bool vil_nitf2_field_sequence::get_value ( std::string  tag,
const vil_nitf2_index_vector indexes,
vil_nitf2_date_time out_value,
bool  ignore_extra_indexes = false 
) const

◆ get_values() [1/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< int > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [2/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< double > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [3/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< char > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [4/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< void * > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [5/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< std::string > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [6/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< vil_nitf2_location * > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [7/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
const vil_nitf2_index_vector indexes,
std::vector< vil_nitf2_date_time > &  out_values,
bool  clear_out_values = true 
) const

◆ get_values() [8/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< int > &  out_values 
) const

◆ get_values() [9/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< double > &  out_values 
) const

◆ get_values() [10/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< char > &  out_values 
) const

◆ get_values() [11/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< void * > &  out_values 
) const

◆ get_values() [12/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< std::string > &  out_values 
) const

◆ get_values() [13/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< vil_nitf2_location * > &  out_values 
) const

◆ get_values() [14/14]

bool vil_nitf2_field_sequence::get_values ( std::string  tag,
std::vector< vil_nitf2_date_time > &  out_values 
) const

◆ insert_field()

void vil_nitf2_field_sequence::insert_field ( const std::string &  str,
vil_nitf2_field field 
)
private

Definition at line 28 of file vil_nitf2_field_sequence.cxx.

◆ read()

bool vil_nitf2_field_sequence::read ( vil_nitf2_istream input,
const vil_nitf2_field_definitions field_defs = nullptr,
const vil_nitf2_index_vector indexes = vil_nitf2_index_vector() 
)

Definition at line 91 of file vil_nitf2_field_sequence.cxx.

◆ set_array_fields_dimension()

void vil_nitf2_field_sequence::set_array_fields_dimension ( const vil_nitf2_field_definitions field_defs,
const vil_nitf2_index_vector index,
int  repeat_count 
)

Definition at line 64 of file vil_nitf2_field_sequence.cxx.

◆ write()

bool vil_nitf2_field_sequence::write ( vil_nitf2_ostream output,
const vil_nitf2_field_definitions field_defs = nullptr,
vil_nitf2_index_vector  indexes = vil_nitf2_index_vector() 
)
virtual

Definition at line 251 of file vil_nitf2_field_sequence.cxx.

Member Data Documentation

◆ fields

field_map vil_nitf2_field_sequence::fields
private

Definition at line 165 of file vil_nitf2_field_sequence.h.

◆ fields_vector

std::vector<vil_nitf2_field*> vil_nitf2_field_sequence::fields_vector
private

Definition at line 168 of file vil_nitf2_field_sequence.h.

◆ m_field_definitions

const vil_nitf2_field_definitions* vil_nitf2_field_sequence::m_field_definitions
private

Definition at line 170 of file vil_nitf2_field_sequence.h.


The documentation for this class was generated from the following files: