|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox/io header_index_section__define.pro
INDEX_FILE_SECTION | +-header_index_section
This extends the index_file_section class to properly handle the header section of an index file. The added basic functionality is to treat the header section like a dictionary, that is, a list of keyword-value pairs. See UML for all IO Classes
Fields Summary | |
HEADER |
a key_value_parser object for converting the lines in the section to a structure |
LINES |
. |
Fields inherited from INDEX_FILE_SECTION: | ||||||||||||||||||||||
|
Routine Summary 11 routines |
procedure header_index_section__define | |
This extends the index_file_section class to properly handle the header section of an index file. |
function HEADER_INDEX_SECTION::init(filename) | private |
Class Constructor |
procedure HEADER_INDEX_SECTION::cleanup | private |
Class Destructor |
procedure HEADER_INDEX_SECTION::create, hdr_lines[, start_line_number] | |
Creates the header section, given the strings to place there. |
procedure HEADER_INDEX_SECTION::process_line, line, index | |
Procedure to process each line. |
function HEADER_INDEX_SECTION::read_file() | |
Reads the header section of an index file. |
function HEADER_INDEX_SECTION::get_lines([count]) | |
Retrieves array of lines in section; commented out lines are not included |
function HEADER_INDEX_SECTION::get_value(keyword) | |
Retrieves the value for a header keyword. |
function HEADER_INDEX_SECTION::get_line_number(keyword) | private |
Retrieves the position in the file of the header keyword supplied |
function HEADER_INDEX_SECTION::set_value(keyword, value) | |
Sets the value for the keyword in the file header |
procedure HEADER_INDEX_SECTION::list | |
Prints out the contents of the header (in it's structure form) |
Routine Details |
header_index_section__define |
procedure header_index_section__define |
This extends the index_file_section class to properly handle the header section of an index file. The added basic functionality is to treat the header section like a dictionary, that is, a list of keyword-value pairs. See UML for all IO Classes
HEADER_INDEX_SECTION::init | private |
function HEADER_INDEX_SECTION::init(filename) |
Class Constructor
Parameters | |
filename |
. |
HEADER_INDEX_SECTION::cleanup | private |
procedure HEADER_INDEX_SECTION::cleanup |
Class Destructor
HEADER_INDEX_SECTION::create |
procedure HEADER_INDEX_SECTION::create, hdr_lines[, start_line_number] |
Creates the header section, given the strings to place there.
HEADER_INDEX_SECTION::process_line |
Procedure to process each line. Invoked by index_file_section::read_file
Parameters | |
line |
The line to handle. |
index |
The index number for this line |
HEADER_INDEX_SECTION::read_file |
function HEADER_INDEX_SECTION::read_file() |
Reads the header section of an index file. After reading in the lines, creates a key_value_parser object to manage them.
HEADER_INDEX_SECTION::get_lines |
function HEADER_INDEX_SECTION::get_lines([count]) |
Retrieves array of lines in section; commented out lines are not included
Parameters | |
count |
number of lines returned |
HEADER_INDEX_SECTION::get_value |
function HEADER_INDEX_SECTION::get_value(keyword) |
Retrieves the value for a header keyword.
Parameters | |
keyword |
keyword whose value is returned |
HEADER_INDEX_SECTION::get_line_number | private |
function HEADER_INDEX_SECTION::get_line_number(keyword) |
Retrieves the position in the file of the header keyword supplied
Parameters | |
keyword |
keyword whose position is returned |
HEADER_INDEX_SECTION::set_value |
Sets the value for the keyword in the file header
Parameters | |
keyword |
keyword whose value is set |
value |
value to set for keyword |
HEADER_INDEX_SECTION::list |
procedure HEADER_INDEX_SECTION::list |
Prints out the contents of the header (in it's structure form)