![]() |
![]() |
![]() |
![]() |
DVtable_column, DVtable_read, DVtable_read_init
Synopsis
DVtable_column is used to hold UI and user-choice information for Read_Txt_Columns. DVtable_read is a base module for Read_Txt_Columns. DVtable_read_init is used to initialize the UI for Read_Txt_Columns.
module DVtable_read_init {
int+Iparam init_file; // initialize columns names and types
string+read+notify+opt filename;
string+Iparam delimiter;
int+Iparam header; // has a header to be read
int+Iparam skip_lines; // lines at the start of the file to skip
int+IOparam ncol; // num columns found in file. Its also
// an input if init_file == 0
DVtable_column+Oparam out[];
omethod+notify_inst+notify_val upd_func<val_state=1>
= "DVtable_read_init_update";
};Description
DVtable_column is an utiilty data structure used by the DVtable_read_init, DVtable_read modules, Read_Txt_Columns. Its primary purpose is to hold UI and user-choice information for Read_Txt_Columns. DVtable_read_init is an utility module that used to initialize the UI for Read_Txt_Columns. It does an inital scan through the input file text file. If init file is does not equal 0, it sets ncol to the number of columns found and initializes the out parameter a array of DVtable_column with information such as the name and type of each column. DVtable_read is the base module for Read_Txt_Columns. It fills an output array of Data_Array with the information from column file, one Data_Array per column.
Input
int. Generates a synthetic index column. Creates an additional column which is an index counter. eg. 1,2,3....
Output
Example
File
See also
![]() |
![]() |
![]() |
![]() |