/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/utils/eh_symbol_table.h File Reference

#include <stdio.h>
#include <glib.h>
#include <utils/eh_types.h>
#include <utils/eh_input_val.h>

Go to the source code of this file.

Defines

#define EH_SYM_TABLE_ERROR   eh_symbol_table_error_quark()

Enumerations

enum  Eh_symbol_table_error { EH_SYM_TABLE_ERROR_MISSING_LABEL }

Functions

 new_handle (Eh_symbol_table)
Eh_symbol_table eh_symbol_table_new (void)
Eh_symbol_table eh_symbol_table_dup (Eh_symbol_table t)
Eh_symbol_table eh_symbol_table_copy (Eh_symbol_table dest, Eh_symbol_table src)
void eh_symbol_table_foreach (Eh_symbol_table s, GHFunc f, gpointer user_data)
Eh_symbol_table eh_symbol_table_merge (Eh_symbol_table table1,...)
void eh_symbol_table_insert (Eh_symbol_table s, char *key, char *value)
void eh_symbol_table_replace (Eh_symbol_table s, char *key, char *value)
char * eh_symbol_table_lookup (Eh_symbol_table s, const char *key)
void eh_symbol_table_print (Eh_symbol_table s, FILE *fp)
void eh_symbol_table_print_aligned (Eh_symbol_table s, FILE *fp)
gssize eh_symbol_table_size (Eh_symbol_table s)
Eh_symbol_table eh_symbol_table_destroy (Eh_symbol_table s)
gboolean eh_symbol_table_has_label (Eh_symbol_table s, gchar *label)
gboolean eh_symbol_table_has_labels (Eh_symbol_table s, gchar **labels)
gboolean eh_symbol_table_require_labels (Eh_symbol_table s, gchar **labels, GError **error)
gchar * eh_symbol_table_value (Eh_symbol_table s, const gchar *label)
gchar ** eh_symbol_table_values (Eh_symbol_table s, const gchar *label, const gchar *delimiters)
double eh_symbol_table_dbl_value (Eh_symbol_table s, gchar *label)
double * eh_symbol_table_dbl_array_value (Eh_symbol_table s, gchar *label, gint *len, const gchar *delims)
double eh_symbol_table_time_value (Eh_symbol_table s, gchar *label)
gboolean eh_symbol_table_bool_value (Eh_symbol_table s, gchar *label)
gint eh_symbol_table_int_value (Eh_symbol_table s, gchar *label)
Eh_input_val eh_symbol_table_input_value (Eh_symbol_table s, gchar *label, GError **err)
guint eh_str_case_hash (gconstpointer key)
gboolean eh_str_case_equal (gconstpointer a, gconstpointer b)


Define Documentation

#define EH_SYM_TABLE_ERROR   eh_symbol_table_error_quark()

Definition at line 17 of file eh_symbol_table.h.

Referenced by eh_symbol_table_require_labels().


Enumeration Type Documentation

enum Eh_symbol_table_error

Enumerator:
EH_SYM_TABLE_ERROR_MISSING_LABEL 

Definition at line 11 of file eh_symbol_table.h.


Function Documentation

gboolean eh_str_case_equal ( gconstpointer  a,
gconstpointer  b 
)

guint eh_str_case_hash ( gconstpointer  key  ) 

gboolean eh_symbol_table_bool_value ( Eh_symbol_table  s,
gchar *  label 
)

Definition at line 410 of file eh_symbol_table.c.

References eh_free, eh_str_to_boolean(), and eh_symbol_table_value().

Referenced by init_avulsion(), init_met_station(), and init_storm().

Eh_symbol_table eh_symbol_table_copy ( Eh_symbol_table  dest,
Eh_symbol_table  src 
)

Definition at line 101 of file eh_symbol_table.c.

References __eh_symbol_table_insert(), and eh_symbol_table_new().

Referenced by eh_key_file_scan_for(), and eh_symbol_table_dup().

double* eh_symbol_table_dbl_array_value ( Eh_symbol_table  s,
gchar *  label,
gint *  len,
const gchar *  delims 
)

Definition at line 317 of file eh_symbol_table.c.

References eh_free, eh_new, eh_require, and eh_symbol_table_values().

Referenced by sed_hydro_new_from_table().

double eh_symbol_table_dbl_value ( Eh_symbol_table  s,
gchar *  label 
)

Definition at line 286 of file eh_symbol_table.c.

References eh_free, eh_nan(), and eh_symbol_table_value().

Referenced by init_bedload(), init_data_dump(), init_debris_flow(), init_diffusion(), init_erosion(), init_failure(), init_inflow(), init_isostasy(), init_plume_hypo(), init_quake(), init_storm(), init_tide(), sed_get_floor_sequence_2(), sed_hydro_new_from_table(), and sed_type_init().

Eh_symbol_table eh_symbol_table_destroy ( Eh_symbol_table  s  ) 

Definition at line 182 of file eh_symbol_table.c.

References eh_free.

Referenced by destroy_hash_table_list(), eh_data_record_destroy(), eh_destroy_args(), eh_destroy_context(), eh_get_opt_defaults(), eh_key_file_scan(), eh_key_file_scan_for(), eh_str_parse_key_value(), sed_epoch_queue_new(), sed_get_floor_sequence_2(), sed_hydro_scan_n_records(), sed_process_scan(), and sed_sediment_scan().

Eh_symbol_table eh_symbol_table_dup ( Eh_symbol_table  t  ) 

Definition at line 96 of file eh_symbol_table.c.

References eh_symbol_table_copy().

Referenced by eh_key_file_get_symbol_table(), and eh_key_file_get_symbol_tables().

void eh_symbol_table_foreach ( Eh_symbol_table  s,
GHFunc  f,
gpointer  user_data 
)

Definition at line 111 of file eh_symbol_table.c.

Referenced by eh_check_opts(), eh_key_file_get_keys(), eh_key_file_scan(), eh_opt_print_all_opts(), eh_opt_print_key_file(), and eh_print_all_opts().

gboolean eh_symbol_table_has_label ( Eh_symbol_table  s,
gchar *  label 
)

Definition at line 192 of file eh_symbol_table.c.

Referenced by eh_symbol_table_has_labels(), eh_symbol_table_require_labels(), and sed_get_floor_sequence_2().

gboolean eh_symbol_table_has_labels ( Eh_symbol_table  s,
gchar **  labels 
)

Definition at line 205 of file eh_symbol_table.c.

References eh_symbol_table_has_label().

Referenced by sed_epoch_new_from_table().

Eh_input_val eh_symbol_table_input_value ( Eh_symbol_table  s,
gchar *  label,
GError **  err 
)

Definition at line 436 of file eh_symbol_table.c.

References eh_input_val_set(), and eh_symbol_table_lookup().

Referenced by bio_init(), init_avulsion(), init_bioturbation(), init_constants(), init_diffusion(), init_plume_hypo(), init_storm(), and init_xshore().

void eh_symbol_table_insert ( Eh_symbol_table  s,
char *  key,
char *  value 
)

Definition at line 135 of file eh_symbol_table.c.

Referenced by __eh_symbol_table_insert(), eh_args_insert(), eh_args_insert_default(), eh_data_record_add_label(), eh_key_file_reset_value(), eh_key_file_set_value(), eh_opts_init(), eh_scan_next_record(), eh_str_parse_key_value(), and set_default_values().

gint eh_symbol_table_int_value ( Eh_symbol_table  s,
gchar *  label 
)

Definition at line 423 of file eh_symbol_table.c.

References eh_free, and eh_symbol_table_value().

Referenced by init_avulsion(), init_plume_hypo(), init_quake(), init_storm(), and init_xshore().

char* eh_symbol_table_lookup ( Eh_symbol_table  s,
const char *  key 
)

Definition at line 146 of file eh_symbol_table.c.

Referenced by bio_init(), eh_args_lookup(), eh_check_opts(), eh_get_opt_default(), eh_key_file_get_value(), eh_key_file_has_key(), eh_key_file_list_to_array(), eh_opt_value(), eh_symbol_table_input_value(), init_avulsion(), init_bbl(), init_data_dump(), init_erosion(), init_flow(), init_met_station(), init_river(), init_tide(), and main().

Eh_symbol_table eh_symbol_table_merge ( Eh_symbol_table  table1,
  ... 
)

Definition at line 116 of file eh_symbol_table.c.

References __eh_symbol_table_insert(), and eh_symbol_table_new().

Referenced by eh_get_opt_defaults().

Eh_symbol_table eh_symbol_table_new ( void   ) 

Definition at line 85 of file eh_symbol_table.c.

References eh_str_case_equal(), eh_str_case_hash(), eh_symbol_table_free_label(), and NEW_OBJECT.

Referenced by eh_create_args(), eh_data_record_new(), eh_get_opt_defaults(), eh_key_file_add_group(), eh_key_file_scan(), eh_opt_create_context(), eh_opts_init(), eh_str_parse_key_value(), eh_symbol_table_copy(), eh_symbol_table_merge(), and set_default_values().

void eh_symbol_table_print ( Eh_symbol_table  s,
FILE *  fp 
)

Definition at line 162 of file eh_symbol_table.c.

References eh_print_symbol().

void eh_symbol_table_print_aligned ( Eh_symbol_table  s,
FILE *  fp 
)

Definition at line 167 of file eh_symbol_table.c.

References eh_get_max_key_len(), eh_print_symbol_aligned(), aligned_st::fp, and aligned_st::max_key_len.

Referenced by eh_data_record_print().

void eh_symbol_table_replace ( Eh_symbol_table  s,
char *  key,
char *  value 
)

Definition at line 140 of file eh_symbol_table.c.

Referenced by add_new_value().

gboolean eh_symbol_table_require_labels ( Eh_symbol_table  s,
gchar **  labels,
GError **  error 
)

Definition at line 221 of file eh_symbol_table.c.

References eh_return_val_if_fail, eh_set_error_strv(), eh_strv_append(), EH_SYM_TABLE_ERROR, EH_SYM_TABLE_ERROR_MISSING_LABEL, and eh_symbol_table_has_label().

Referenced by bio_init(), init_avulsion(), init_bbl(), init_bedload(), init_bioturbation(), init_data_dump(), init_diffusion(), init_erosion(), init_inflow(), init_isostasy(), init_met_station(), init_plume(), init_plume_hypo(), init_river(), init_sea_level(), init_storm(), init_subsidence(), sed_epoch_new_from_table(), sed_hydro_new_from_table(), and sed_process_scan().

gssize eh_symbol_table_size ( Eh_symbol_table  s  ) 

Definition at line 177 of file eh_symbol_table.c.

Referenced by eh_str_parse_key_value().

double eh_symbol_table_time_value ( Eh_symbol_table  s,
gchar *  label 
)

Definition at line 348 of file eh_symbol_table.c.

References eh_free, eh_nan(), eh_str_to_time_in_years(), and eh_symbol_table_value().

Referenced by init_squall(), and sed_hydro_new_from_table().

gchar* eh_symbol_table_value ( Eh_symbol_table  s,
const gchar *  label 
)

Definition at line 254 of file eh_symbol_table.c.

Referenced by eh_symbol_table_bool_value(), eh_symbol_table_dbl_range(), eh_symbol_table_dbl_value(), eh_symbol_table_int_value(), eh_symbol_table_time_range(), eh_symbol_table_time_value(), eh_symbol_table_values(), init_avulsion(), init_bbl(), init_bedload(), init_cpr(), init_data_dump(), init_met_station(), init_plume(), init_river(), init_sea_level(), init_subsidence(), and sed_epoch_new_from_table().

gchar** eh_symbol_table_values ( Eh_symbol_table  s,
const gchar *  label,
const gchar *  delimiters 
)

Definition at line 263 of file eh_symbol_table.c.

References eh_free, and eh_symbol_table_value().

Referenced by eh_symbol_table_dbl_array_value(), and eh_symbol_table_time_array_value().

new_handle ( Eh_symbol_table   ) 


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