libdsproc3  2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
dsproc_csv_ingest_config.c File Reference

Functions for Reading CSV Ingest Configuration Files. More...

#include "dsproc3.h"

Go to the source code of this file.

Functions

int dsproc_add_csv_field_map (CSVConf *conf, const char *out_name, const char *col_name, int nargs, const char **args)
 Add an entry to the field map.
int dsproc_add_csv_file_name_patterns (CSVConf *conf, int npatterns, const char **patterns)
 Add file name patterns to a CSVConf structure.
int dsproc_add_csv_file_time_patterns (CSVConf *conf, int npatterns, const char **patterns)
 Add file time patterns to a CSVConf structure.
int dsproc_add_csv_time_column_patterns (CSVConf *conf, const char *name, int npatterns, const char **patterns)
 Add time column patterns to a CSVConf structure.
int dsproc_append_csv_header_line (CSVConf *conf, const char *string)
 Append a string to the end of the header line.
void dsproc_clear_csv_field_maps (CSVConf *conf)
 Clear the time column patterns in a CSVConf structure.
void dsproc_clear_csv_file_name_patterns (CSVConf *conf)
 Clear the file name patterns in a CSVConf structure.
void dsproc_clear_csv_file_time_patterns (CSVConf *conf)
 Clear the file name patterns in a CSVConf structure.
void dsproc_clear_csv_time_column_patterns (CSVConf *conf)
 Clear the time column patterns in a CSVConf structure.
int dsproc_configure_csv_parser (CSVConf *conf, CSVParser *csv)
 Free memory used by a CSVConf structure.
CSV2CDSMapdsproc_create_csv_to_cds_map (CSVConf *conf, CSVParser *csv, CDSGroup *cds, int flags)
 Create a CSV2CDS Map.
void dsproc_free_csv_conf (CSVConf *conf)
 Free memory used by a CSVConf structure.
void dsproc_free_csv_to_cds_map (CSV2CDSMap *map)
 Free the memory used by a CSV2CDS Map.
CSVConfdsproc_init_csv_conf (const char *name, const char *level)
 Initialize a new CSVConf structure.
int dsproc_load_csv_conf (CSVConf *conf, time_t data_time, int flags)
 Load the CSV Configuration file into a CVSConf structure.
int dsproc_print_csv_conf (FILE *fp, CSVConf *conf)
 Print the contents of a CSVConf structure.

Variables

const char * _ConfKeys []
 List of config file key words.

Detailed Description

Functions for Reading CSV Ingest Configuration Files.

Definition in file dsproc_csv_ingest_config.c.


Variable Documentation

const char* _ConfKeys[]
Initial value:
{
"FILE_NAME_PATTERNS",
"FILE_TIME_PATTERNS",
"DELIMITER",
"HEADER_LINE",
"HEADER_LINE_TAG",
"HEADER_LINE_NUMBER",
"NUMBER_OF_HEADER_LINES",
"NUMBER_OF_COLUMNS",
"TIME_COLUMN_PATTERNS",
"SPLIT_INTERVAL",
"FIELD_MAP",
NULL
}

List of config file key words.

Definition at line 40 of file dsproc_csv_ingest_config.c.