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

#include <eh_utils.h>

Go to the source code of this file.

Defines

#define EH_SECONDS_PER_DAY   ( 86400. )
#define EH_SECONDS_PER_HOUR   ( 3600. )
#define EH_SECONDS_PER_MINUTE   ( 60. )

Functions

gpointer print_status (gpointer data)
Eh_status_bareh_status_bar_new (double *cur, double *end)
Eh_status_bareh_status_bar_stop (Eh_status_bar *b)
Eh_status_bareh_status_bar_pause (Eh_status_bar *b)
gboolean eh_status_bar_is_stopped (Eh_status_bar *b)
Eh_status_bareh_status_bar_destroy (Eh_status_bar *b)
gchar * eh_render_time_str (double sec)


Define Documentation

#define EH_SECONDS_PER_DAY   ( 86400. )

Definition at line 121 of file eh_status_bar.c.

Referenced by eh_render_time_str().

#define EH_SECONDS_PER_HOUR   ( 3600. )

Definition at line 122 of file eh_status_bar.c.

Referenced by eh_render_time_str().

#define EH_SECONDS_PER_MINUTE   ( 60. )

Definition at line 123 of file eh_status_bar.c.

Referenced by eh_render_time_str().


Function Documentation

gchar* eh_render_time_str ( double  sec  ) 

Definition at line 126 of file eh_status_bar.c.

References EH_SECONDS_PER_DAY, EH_SECONDS_PER_HOUR, and EH_SECONDS_PER_MINUTE.

Referenced by print_status(), and sed_process_summary().

Eh_status_bar* eh_status_bar_destroy ( Eh_status_bar b  ) 

Definition at line 53 of file eh_status_bar.c.

References eh_free, eh_status_bar_stop(), Eh_status_bar::mutex, Eh_status_bar::t, and Eh_status_bar::timer.

Referenced by avulsion_full().

gboolean eh_status_bar_is_stopped ( Eh_status_bar b  ) 

Definition at line 41 of file eh_status_bar.c.

References EH_STATUS_BAR_STOPPED, Eh_status_bar::mutex, and Eh_status_bar::status.

Referenced by print_status().

Eh_status_bar* eh_status_bar_new ( double *  cur,
double *  end 
)

Definition at line 6 of file eh_status_bar.c.

References Eh_status_bar::cur, eh_new, EH_STATUS_BAR_RUNNING, Eh_status_bar::end, Eh_status_bar::mutex, print_status(), Eh_status_bar::status, Eh_status_bar::t, and Eh_status_bar::timer.

Referenced by avulsion_full().

Eh_status_bar* eh_status_bar_pause ( Eh_status_bar b  ) 

Definition at line 32 of file eh_status_bar.c.

References EH_STATUS_BAR_PAUSED, Eh_status_bar::mutex, and Eh_status_bar::status.

Eh_status_bar* eh_status_bar_stop ( Eh_status_bar b  ) 

Definition at line 22 of file eh_status_bar.c.

References EH_STATUS_BAR_STOPPED, Eh_status_bar::mutex, and Eh_status_bar::status.

Referenced by eh_status_bar_destroy().

gpointer print_status ( gpointer  data  ) 

Definition at line 67 of file eh_status_bar.c.

References Eh_status_bar::cur, eh_free, eh_render_time_str(), eh_status_bar_is_stopped(), and EH_STATUS_BAR_RUNNING.

Referenced by eh_status_bar_new().


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