Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

error_tffc.h File Reference

This file contains the error handling subroutine. More...


Defines

#define USE_SYSLOG_ERR   0x1
 Definition for use ``err_syslog'' routines. More...

#define USE_FILE_ERR   0x2
 Definition for use ``err_file'' routines. More...

#define USE_CURSES_ERR   0x4
 Definition for use ``err_box'' routines. More...

#define ANYKEY_MSG   "Stiskni jakoukoliv klavesu pro pokracovani"
#define ABORT_MSG   "Stiskni jakoukoliv klavesu pro skonceni"

Functions

int err_box (char *message, char *prompt, int sleep_sec)
 err_box. More...

void err_syslog (char *message, char *prompt)
 err_syslog. More...

void err_file (char *message, char *prompt, char *name)
 err_file. More...

int error_tffc (char *message, char *prompt, int sleep_sec, char *name, int mode)
 error_tffc. More...


Detailed Description

This file contains the error handling subroutine.

Author:
Igor Bujna
Date:
Pá čec 26 09:59:28 CEST 2002
Version:
1.01

Define Documentation

#define ABORT_MSG   "Stiskni jakoukoliv klavesu pro skonceni"
 

#define ANYKEY_MSG   "Stiskni jakoukoliv klavesu pro pokracovani"
 

#define USE_CURSES_ERR   0x4
 

Definition for use ``err_box'' routines.

#define USE_FILE_ERR   0x2
 

Definition for use ``err_file'' routines.

#define USE_SYSLOG_ERR   0x1
 

Definition for use ``err_syslog'' routines.


Function Documentation

int err_box char *    message,
char *    prompt,
int    sleep_sec
 

err_box.

Parameters:
message  Pointer to message
prompt  Pointer to prompt
sleep_sec 
Returns:
int Kode for key press
Routines for printing error box with warning. ``message'' is the print given error and ``prompt'' is the print text warning. Parameter ``sleep_sec'' is how much of seconds we want sleep.
  1. If this parameter is '0' we wait for key press.
  2. If this parameter is < '0' we don't wait for key press.

void err_file char *    message,
char *    prompt,
char *    name
 

err_file.

Parameters:
message  Pointer to message
prompt  Pointer to prompt
name  It's name for file output
Returns:
void
Routines for putting error ``messages'' and print text warning ``prompt'' to specific file ``name''.

void err_syslog char *    message,
char *    prompt
 

err_syslog.

Parameters:
message  Pointer to message
prompt  Pointer to prompt
Returns:
void
Routines for putting error ``messages'' and print text warning ``prompt'' to the syslog.
  1. If you compiled this on the CYGWIN or DJGPP it put this error messages to c:/tffc_err.log file.

int error_tffc char *    message,
char *    prompt,
int    sleep_sec,
char *    name,
int    mode
 

error_tffc.

Parameters:
message  Pointer to message
prompt  Pointer to prompt
sleep_sec  See in func ``err_box''
name  It's name for file output
mode  It's given binary mode
Routines for putting error ``messages'' and print text warning ``prompt'' to specific output ``mode''(binary int). Parameter ``sleep_sec'' is how much of seconds we want sleep, this is for ``USE_CURSES_ERR'' mode.
  1. If this parameter is '0' we wait for key press.
  2. If this parameter is < '0' we don't wait for key press. Given ``mode'':
  3. If ``mode'' is USE_SYSLOG_ERR output is syslog (it's similar like ``err_syslog'').
  4. If ``mode'' is USE_FILE_ERR output is current file (it's similar like ``err_file'').
  5. If ``mode'' is USE_CURSES_ERR output is box (it's similar like ``err_box'').


Generated on Wed Apr 2 06:51:16 2003 for TFCC by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001