X-shooter Pipeline Reference Manual 3.8.15
Data Structures | Macros | Functions | Variables
irplib_error.c File Reference
#include "irplib_error.h"
#include <string.h>
#include <cpl.h>
#include <cxutils.h>
#include <stdarg.h>

Go to the source code of this file.

Data Structures

struct  irplib_error
 

Macros

#define MAX_STRING_LENGTH   200
 
#define MAX_ERRORS   20
 

Functions

static void irplib_error_validate_state (const char *func, const char *file, unsigned int line)
 Synchronize IRPLIB error state with CPL's error state.
 
cpl_error_code xsh_irplib_error_push_macro (const char *func, cpl_error_code ec, const char *file, unsigned int line)
 Set or propagate an error.
 
void xsh_irplib_error_set_msg (const char *format,...)
 Temporarily store an error message.
 
void xsh_irplib_error_reset (void)
 Reset the error state.
 
void xsh_irplib_error_dump_macro (const char *func, const char *file, unsigned int line, cpl_msg_severity severity, cpl_msg_severity trace_severity)
 Print the error queue.
 

Variables

struct {
   irplib_error   errors [MAX_ERRORS]
 
   cpl_boolean   is_empty
 
   unsigned int   first
 
   unsigned int   last
 
queue
 
static char error_msg [MAX_STRING_LENGTH]
 
static cpl_boolean is_initialized = CPL_FALSE
 

Variable Documentation

◆ errors

Definition at line 86 of file irplib_error.c.

Referenced by xsh_detmon_compute_badpixmap().

◆ first

unsigned int first

◆ is_empty

cpl_boolean is_empty

Definition at line 87 of file irplib_error.c.

◆ last

unsigned int last

Definition at line 89 of file irplib_error.c.

Referenced by compute_dist_pixel(), and detect_centroid().