Public Member Functions | Public Attributes

DataFileDescriptorRecord Class Reference

#include <parasolfilerecord.h>

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

List of all members.

Public Member Functions

 DataFileDescriptorRecord ()
 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_data_rec
unsigned int one_data_rec_len
unsigned int data_rec_prefix_len
unsigned int data_rec_data_len
unsigned int data_rec_suffix_len

Detailed Description

Store the PARASOL data files descriptor record values.


Constructor & Destructor Documentation

DataFileDescriptorRecord::DataFileDescriptorRecord (  )  [inline]

constructor : put the end-of-string characters

< Reference Document Identification

< Reference Document Version Number

< Software Version Number

< File Number

< File Name


Member Function Documentation

void * DataFileDescriptorRecord::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 data_rec_data_len, data_rec_prefix_len, data_rec_suffix_len, file_nb, filename, nb_data_rec, one_data_rec_len, PARASOLFileRecord::rec_len, PARASOLFileRecord::rec_nb, ref_doc_id, ref_doc_version, and soft_version.

const int DataFileDescriptorRecord::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 data file record
Returns:
the record size

References nb_data_rec, one_data_rec_len, and PARASOLFileRecord::rec_len.


Member Data Documentation

Length of the Datas in the Record Data

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

Length of the Prefix in the Record Data

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

Length of the Suffix in the Record Data

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

File Number

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

Reference Document Identification

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

Reference Document Version Number

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().

Software Version Number

Referenced by get_entry(), and PARASOLData::print_data_file_descriptor().


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