Public Member Functions | Public Attributes

LeaderFileDescriptorRecord Class Reference

#include <parasolfilerecord.h>

Inheritance diagram for LeaderFileDescriptorRecord:
Inheritance graph
[legend]
Collaboration diagram for LeaderFileDescriptorRecord:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LeaderFileDescriptorRecord ()
 constructor : put the end-of-string characters
void * get_entry (const int &entry_index, const vector< int > v_ival=vector< int >(0))
 access to each attribute for writing it For example, this used for reading the L1 technological parametres. If you want to access to the image "im" in the sequence "is", v_ival will be ["is","im"]
const int get_record_size (const Record &record)
 access a specific record size. If the record isn't defined for the product, return 0

Public Attributes

char ref_doc_id [12+1]
char ref_doc_version [6+1]
char soft_version [6+1]
char file_nb [4+1]
char filename [16+1]
unsigned int nb_header_rec
unsigned int header_rec_len
unsigned int nb_spatio_temp_char_rec
unsigned int spatio_temp_char_rec_len
unsigned int nb_instr_setting_param_rec
unsigned int instr_setting_param_rec_len
unsigned int nb_tech_param_rec
unsigned int tech_param_rec_len
unsigned int nb_data_proc_param_rec
unsigned int data_proc_param_rec_len
unsigned int nb_scaling_factor_rec
unsigned int scaling_factor_rec_len
unsigned int nb_annot_rec
unsigned int annot_rec_len

Detailed Description

Store the PARASOL files descriptor record values.


Member Function Documentation

void * LeaderFileDescriptorRecord::get_entry ( const int &  entry_index,
const vector< int >  v_ival = vector <int>(0) 
) [virtual]

access to each attribute for writing it For example, this used for reading the L1 technological parametres. If you want to access to the image "im" in the sequence "is", v_ival will be ["is","im"]

Parameters:
entry_index the index of the entry in the record
v_ival the indexes of the value to read, stored as a vector
Returns:
a pointer to the attribute to read

Implements PARASOLFileRecord.

References annot_rec_len, data_proc_param_rec_len, file_nb, filename, header_rec_len, instr_setting_param_rec_len, nb_annot_rec, nb_data_proc_param_rec, nb_header_rec, nb_instr_setting_param_rec, nb_scaling_factor_rec, nb_spatio_temp_char_rec, nb_tech_param_rec, PARASOLFileRecord::rec_len, PARASOLFileRecord::rec_nb, ref_doc_id, ref_doc_version, scaling_factor_rec_len, soft_version, spatio_temp_char_rec_len, and tech_param_rec_len.

const int LeaderFileDescriptorRecord::get_record_size ( const Record &  record  ) 

access a specific record size. If the record isn't defined for the product, return 0

Parameters:
record a PARASOL leader file record
Returns:
the record size

References annot_rec_len, data_proc_param_rec_len, header_rec_len, instr_setting_param_rec_len, PARASOLFileRecord::rec_len, scaling_factor_rec_len, spatio_temp_char_rec_len, and tech_param_rec_len.

Referenced by PARASOLLeader::get_record_offset().


Member Data Documentation

Length of the "Annotation" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Data processing parameters" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Header" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Instrument setting parameters" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Annotation" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Data processing parameters" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Header" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Instrument setting parameters" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Scaling factors" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Spatio-Temporal Characteristics" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Number of "Technological parameters" records in the file

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Reference Document Identification

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Reference Document Version Number

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Scaling factors" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Software Version Number

Referenced by get_entry(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Spatio-Temporal Characteristics" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().

Length of the "Technological parameters" record

Referenced by get_entry(), get_record_size(), and PARASOLLeader::print_leader_file_descriptor().


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