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

#include <eh_utils.h>
#include <time.h>

Go to the source code of this file.

Defines

#define DONT_ASK   (TRUE)

Functions

 CLASS (Eh_project)
char * construct_project_group_name (Eh_project p)
int eh_sort_ptr (gconstpointer a, gconstpointer b, gpointer user_data)
Eh_project eh_create_project (const char *proj_name)
char * eh_project_name (Eh_project p)
char * eh_project_dir_name (Eh_project p)
GDir * eh_project_dir (Eh_project p)
GKeyFile * eh_project_info_file (Eh_project p)
char * eh_project_info_file_full_name (Eh_project p)
gchar * eh_project_get_info_val (Eh_project p, const gchar *key)
Eh_project eh_project_set_info_val (Eh_project p, const gchar *key, const gchar *value)
Eh_project eh_project_add_info_val (Eh_project p, char *key, const gchar *val)
Eh_project eh_set_project_dir (Eh_project proj, const char *dir_name)
Eh_project eh_set_project_current_time (Eh_project p)
Eh_project eh_fill_project_info (Eh_project p)
gint eh_write_project_info_file (Eh_project proj)
gboolean eh_read_project_info_file (Eh_project proj)
Eh_project eh_load_project (gchar *info_file)
Eh_project eh_destroy_project (Eh_project proj)
FILE * eh_open_project_file (Eh_project proj, const char *file, const char *mode)
void eh_close_project_file (Eh_project proj, FILE *fp)
void eh_close_project_file_all (Eh_project proj)


Define Documentation

#define DONT_ASK   (TRUE)

Definition at line 146 of file eh_project.c.

Referenced by eh_set_project_dir().


Function Documentation

CLASS ( Eh_project   ) 

Definition at line 3 of file eh_project.c.

char * construct_project_group_name ( Eh_project  p  ) 

Definition at line 182 of file eh_project.c.

Referenced by eh_fill_project_info(), eh_project_add_info_val(), eh_project_get_info_val(), eh_project_set_info_val(), and eh_set_project_current_time().

void eh_close_project_file ( Eh_project  proj,
FILE *  fp 
)

Definition at line 393 of file eh_project.c.

void eh_close_project_file_all ( Eh_project  proj  ) 

Definition at line 398 of file eh_project.c.

Eh_project eh_create_project ( const char *  proj_name  ) 

Definition at line 15 of file eh_project.c.

References eh_fill_project_info(), eh_free_c_style(), eh_sort_ptr(), and NEW_OBJECT.

Referenced by create_test_project(), eh_load_project(), fill_sedflux_info_file(), and sedflux_print_info_file().

Eh_project eh_destroy_project ( Eh_project  proj  ) 

Definition at line 350 of file eh_project.c.

References eh_free.

Referenced by eh_load_project(), fill_sedflux_info_file(), and sedflux_print_info_file().

Eh_project eh_fill_project_info ( Eh_project  p  ) 

Definition at line 222 of file eh_project.c.

References construct_project_group_name(), eh_free, eh_require, and S_LINEMAX.

Referenced by eh_create_project().

Eh_project eh_load_project ( gchar *  info_file  ) 

Definition at line 316 of file eh_project.c.

References eh_create_project(), eh_destroy_project(), eh_free, and eh_require.

FILE* eh_open_project_file ( Eh_project  proj,
const char *  file,
const char *  mode 
)

Definition at line 370 of file eh_project.c.

References eh_require.

Eh_project eh_project_add_info_val ( Eh_project  p,
char *  key,
const gchar *  val 
)

Definition at line 104 of file eh_project.c.

References construct_project_group_name(), eh_free, eh_renew, and eh_require.

Referenced by fill_sedflux_info_file().

GDir* eh_project_dir ( Eh_project  p  ) 

Definition at line 50 of file eh_project.c.

char* eh_project_dir_name ( Eh_project  p  ) 

Definition at line 45 of file eh_project.c.

Referenced by eh_project_info_file_full_name(), and fill_sedflux_info_file().

gchar* eh_project_get_info_val ( Eh_project  p,
const gchar *  key 
)

Definition at line 72 of file eh_project.c.

References construct_project_group_name(), and eh_free.

Referenced by fill_sedflux_info_file().

GKeyFile* eh_project_info_file ( Eh_project  p  ) 

Definition at line 55 of file eh_project.c.

char* eh_project_info_file_full_name ( Eh_project  p  ) 

Definition at line 60 of file eh_project.c.

References eh_free, eh_project_dir_name(), and eh_project_name().

Referenced by eh_write_project_info_file().

char* eh_project_name ( Eh_project  p  ) 

Definition at line 40 of file eh_project.c.

Referenced by eh_project_info_file_full_name(), and fill_sedflux_info_file().

Eh_project eh_project_set_info_val ( Eh_project  p,
const gchar *  key,
const gchar *  value 
)

Definition at line 86 of file eh_project.c.

References construct_project_group_name(), eh_free, and eh_require.

gboolean eh_read_project_info_file ( Eh_project  proj  ) 

Definition at line 297 of file eh_project.c.

References eh_free.

Referenced by fill_sedflux_info_file().

Eh_project eh_set_project_current_time ( Eh_project  p  ) 

Definition at line 189 of file eh_project.c.

References construct_project_group_name(), eh_require, and S_LINEMAX.

Eh_project eh_set_project_dir ( Eh_project  proj,
const char *  dir_name 
)

Definition at line 148 of file eh_project.c.

References DONT_ASK, eh_free, and eh_input_boolean().

Referenced by create_test_project(), fill_sedflux_info_file(), and sedflux_print_info_file().

int eh_sort_ptr ( gconstpointer  a,
gconstpointer  b,
gpointer  user_data 
)

Definition at line 365 of file eh_project.c.

Referenced by eh_create_project().

gint eh_write_project_info_file ( Eh_project  proj  ) 

Definition at line 274 of file eh_project.c.

References eh_fopen(), eh_free, eh_project_info_file_full_name(), and eh_require.

Referenced by sedflux_print_info_file().


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