Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Routines for LOGGING/PRINTING messages


Functions

int print_msg (char *string,...)
int print_msg_nocr (char *text)
int print_label (char *text)
int print_progress (char *text, float pourcent, float step)
int reset_print_progress ()
int print_warning (char *string,...)
int print_error (char *string,...)
void coord_frame (IMAGE2D *frame, int pixel_x, int pixel_y, float *x, float *y)
void pixel_frame (IMAGE2D *frame, float x, float y, int *pixel_x, int *pixel_y)

Function Documentation

int print_msg char *  string,
... 
 

prints a text string on device and logs it

Parameters:
string [char *] format args list of variables to be printed

Definition at line 31 of file io_utils.c.

References TK, and wrcr.

Referenced by create_table(), exit_session(), init_session(), and parse_arg().

int print_msg_nocr char *  text  ) 
 

prints a text string without carriage return on device

Parameters:
text [char *] string to be printed

Definition at line 77 of file io_utils.c.

References wrcr.

int print_label char *  text  ) 
 

prints a text string on device but with /r option

Parameters:
text [char *] string to be printed

Definition at line 98 of file io_utils.c.

References TK, and wrcr.

int print_progress char *  text,
float  pourcent,
float  step
 

Print a percent gauge on the screen or on TK

Parameters:
text [char *] string to be printed
pourcent [float ] pourcent of running job
step [float ] incremental step

Definition at line 130 of file io_utils.c.

References wrcr.

Referenced by convert_datacube(), convert_table(), CP_non_std_desc(), and reset_print_progress().

int reset_print_progress  ) 
 

Definition at line 179 of file io_utils.c.

References print_progress().

int print_warning char *  string,
... 
 

Print a warning message under TK

Parameters:
string [char *] format args list of variables to be printed

Definition at line 193 of file io_utils.c.

References wrcr.

Referenced by create_table(), Handle_Error(), handle_select_flag(), and read_file_class().

int print_error char *  string,
... 
 

Print a error message under TK

Parameters:
string [char *] format args list of variables to be printed

Definition at line 237 of file io_utils.c.

References wrcr.

Referenced by confirme_erase(), convert_datacube(), convert_image(), convert_spec(), convert_table(), get_argval(), Handle_Error(), and sig_segm().

void coord_frame IMAGE2D frame,
int  pixel_x,
int  pixel_y,
float *  x,
float *  y
 

Definition at line 316 of file io_utils.c.

References IMAGE2D::startx, IMAGE2D::starty, IMAGE2D::stepx, and IMAGE2D::stepy.

void pixel_frame IMAGE2D frame,
float  x,
float  y,
int *  pixel_x,
int *  pixel_y
 

transformation in pixels for a frame

Parameters:
frame [IMAGE2D *] image structure
x [float ] coordinate along x axis
y [float ] coordinate along y axis
pixel_x [int *] pixel along x axis
pixel_y [int *] pixel along y axis

Definition at line 335 of file io_utils.c.

References IMAGE2D::startx, IMAGE2D::starty, IMAGE2D::stepx, and IMAGE2D::stepy.


Generated on Tue Jul 1 17:35:48 2003 for IFU_C_iolibs by doxygen1.3