2#ifndef FERROR_H_DEFINED
3#define FERROR_H_DEFINED
bool get_exit_on_error(const error_handler *err)
Gets a logical value determining if the application should be terminated when an error is encountered...
int get_error_flag(const error_handler *err)
Gets the current error flag.
void set_log_filename(error_handler *err, const char *fname)
Sets the error log filename.
bool has_warning_occurred(const error_handler *err)
Tests to see if a warning has been encountered.
void report_warning(error_handler *err, const char *fcn, const char *msg, int flag)
Reports a warning condition to the user.
void reset_warning_status(error_handler *err)
Resets the warning status flag to false, and the current warning flag to zero.
void reset_error_status(error_handler *err)
Resets the error status flag to false, and the current error flag to zero.
bool has_error_occurred(const error_handler *err)
Tests to see if an error has been encountered.
void set_suppress_printing(error_handler *err, bool x)
Sets a logical value determining if printing of error and warning messages should be suppressed.
void log_error(const error_handler *err, const char *fcn, const char *msg, int flag)
Writes an error log file.
void report_error(error_handler *err, const char *fcn, const char *msg, int flag)
Reports an error condition to the user.
void(* error_callback)(void *args)
Describes a function to call when an error is encountered.
void get_warning_fcn_name(const error_handler *err, char *fname, int *nfname)
Gets the name of the function or subroutine that issued the last warning message.
void get_log_filename(const error_handler *err, char *fname, int *nfname)
Gets the name of the error log file.
void get_error_message(const error_handler *err, char *msg, int *nmsg)
Gets the current error message.
int get_warning_flag(const error_handler *err)
Gets the current warning flag.
void report_error_with_callback(error_handler *err, const char *fname, const char *msg, int flag, error_callback cback, void *args)
Reports an error condition to the user, and executes a callback routine.
void alloc_error_handler(error_handler *obj)
Initializes a new error handler object.
void free_error_handler(error_handler *obj)
Frees resources held by the error_handler object.
void get_error_fcn_name(const error_handler *err, char *fname, int *nfname)
Gets the name of the function or subroutine that issued the last error message.
void get_warning_message(const error_handler *err, char *msg, int *nmsg)
Gets the current warning message.
void set_exit_on_error(error_handler *err, bool x)
Sets a logical value determining if the application should be terminated when an error is encountered...
bool get_suppress_printing(const error_handler *err)
Gets a logical value determining if printing of error and warning messages should be suppressed.
A C compatible type encapsulating an errors object.
int object_size
The size of the errors object, in bytes.
void * ptr
A pointer to the errors object.