/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/utils/eh_scanner.c File Reference

#include <eh_utils.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>

Go to the source code of this file.

Functions

GScanner * eh_open_scanner (const char *filename, GError **error)
void eh_close_scanner (GScanner *s)
gboolean eh_scanner_eol (GScanner *s)
double * eh_scan_ascii_data_line_dbl (GScanner *s, const char *delim, gssize *len)
char * eh_scan_ascii_data_line (GScanner *s)
char * eh_scan_next_record (GScanner *s, Eh_symbol_table symbol_table)
gboolean eh_scanner_eor (GScanner *s)
char * eh_scan_label (GScanner *s)
char * eh_scan_entry (GScanner *s)
char * eh_seek_record_start (GScanner *s)
Eh_data_fileeh_open_data_file (const char *filename, Eh_data_file_attr *attr, GError **error)
void eh_close_data_file (Eh_data_file *data_file)
int eh_get_data_file_size (Eh_data_file *data_file)


Function Documentation

void eh_close_data_file ( Eh_data_file data_file  ) 

Definition at line 1076 of file eh_scanner.c.

References eh_data_record_destroy(), eh_free, Eh_data_file::filename, and Eh_data_file::records.

void eh_close_scanner ( GScanner *  s  ) 

Definition at line 356 of file eh_scanner.c.

References eh_free.

Referenced by eh_data_record_scan_file(), and eh_key_file_scan().

int eh_get_data_file_size ( Eh_data_file data_file  ) 

Definition at line 1088 of file eh_scanner.c.

References eh_require, and Eh_data_file::records.

Eh_data_file* eh_open_data_file ( const char *  filename,
Eh_data_file_attr attr,
GError **  error 
)

Definition at line 1032 of file eh_scanner.c.

References Eh_data_file::delimeter, Eh_data_file_attr::delimeter, eh_data_record_scan_file(), EH_FAST_DIM_COL, eh_free, eh_new0, eh_return_val_if_fail, Eh_data_file::fast_dim, Eh_data_file::filename, Eh_data_file::records, Eh_data_file::row_major, Eh_data_file_attr::row_major, Eh_data_file::with_header, and Eh_data_file_attr::with_header.

Referenced by main().

GScanner* eh_open_scanner ( const char *  filename,
GError **  error 
)

Definition at line 293 of file eh_scanner.c.

References eh_require, eh_return_val_if_fail, and eh_set_file_error_from_errno().

Referenced by eh_data_record_scan_file(), and eh_key_file_scan().

char* eh_scan_ascii_data_line ( GScanner *  s  ) 

Definition at line 554 of file eh_scanner.c.

References eh_free, eh_scanner_eol(), and eh_scanner_eor().

Referenced by eh_scan_ascii_data_line_dbl().

double* eh_scan_ascii_data_line_dbl ( GScanner *  s,
const char *  delim,
gssize *  len 
)

Definition at line 519 of file eh_scanner.c.

References eh_free, eh_new, and eh_scan_ascii_data_line().

Referenced by eh_data_record_scan().

char* eh_scan_entry ( GScanner *  s  ) 

Definition at line 774 of file eh_scanner.c.

References eh_exit(), and eh_free.

Referenced by eh_scan_next_record().

char* eh_scan_label ( GScanner *  s  ) 

Definition at line 720 of file eh_scanner.c.

References eh_exit(), and eh_free.

Referenced by eh_scan_next_record().

char* eh_scan_next_record ( GScanner *  s,
Eh_symbol_table  symbol_table 
)

Definition at line 620 of file eh_scanner.c.

References eh_exit(), eh_free, eh_scan_entry(), eh_scan_label(), eh_scanner_eol(), eh_scanner_eor(), eh_seek_record_start(), and eh_symbol_table_insert().

Referenced by eh_data_record_scan(), and eh_key_file_scan().

gboolean eh_scanner_eol ( GScanner *  s  ) 

Definition at line 691 of file eh_scanner.c.

Referenced by eh_scan_ascii_data_line(), eh_scan_next_record(), and eh_seek_record_start().

gboolean eh_scanner_eor ( GScanner *  s  ) 

Definition at line 672 of file eh_scanner.c.

References eh_exit().

Referenced by eh_scan_ascii_data_line(), and eh_scan_next_record().

char* eh_seek_record_start ( GScanner *  s  ) 

Definition at line 828 of file eh_scanner.c.

References eh_exit(), and eh_scanner_eol().

Referenced by eh_data_record_scan(), and eh_scan_next_record().


Generated on Fri Jan 4 18:04:19 2008 for sedflux by  doxygen 1.5.2