51 #ifndef __LIBGPIV_UTILS_H__ 52 #define __LIBGPIV_UTILS_H__ 54 #define GPIV_FAIL_INT -914 223 const gchar *MOD_KEY,
224 const gchar *PAR_KEY,
225 const gboolean use_mod_key,
227 const gchar *par_name,
229 const gboolean verbose,
251 const gchar *PAR_KEY,
252 const gboolean use_mod_key,
254 const gchar *par_name,
256 const gboolean verbose,
280 const gchar *PAR_KEY,
281 const gboolean use_mod_key,
283 const gchar *par_name,
285 const gboolean verbose,
309 const gchar *PAR_KEY,
310 const gboolean use_mod_key,
312 const gchar *par_name,
314 const gboolean verbose,
338 const gchar *PAR_KEY,
339 const gboolean use_mod_key,
341 const gchar *par_name,
343 const gboolean verbose,
void gpiv_error(gchar *message,...)
Prints error handling with variable argumanent list to stdout and exits program.
long gpiv_lmin(long a, long b)
Calculates minimum of longs a and b.
long gpiv_lmax(long a, long b)
Calculates maximum of longs a and b.
gboolean gpiv_scan_sph(const gchar *MOD_KEY, const gchar *PAR_KEY, const gboolean use_mod_key, const gchar *line, const gchar *par_name, gchar *parameter, const gboolean verbose, FILE *fp)
Scans line string on string parameter key and value or image header value (without program key)...
gint gpiv_min(gint a, gint b)
Calculates minimum of integers a and b.
gint gpiv_max(gint a, gint b)
Calculates maximum of integers a and b.
gchar * gpiv_scan_resourcefiles(const gchar *PAR_KEY, void *pstruct, gint verbose)
Opens resource files GPIV_HOME_RSC_FILE (hidden) and SYSTEM_RSC_DIR, GPIV_SYSTEM_RSC_FILE Reads param...
gchar * gpiv_add_datetime_to_comment(gchar *comment)
Adds date and timesatmp to the comment for ASCII-formatted data.
void gpiv_warning(gchar *message,...)
Prints warning message with variable argumanent list.
gboolean gpiv_scan_cph(const gchar *MOD_KEY, const gchar *PAR_KEY, const gboolean use_mod_key, const gchar *line, const gchar *par_name, gchar *parameter, const gboolean verbose, FILE *fp)
Scans line string on char parameter key and value or image header value (without program key)...
gchar * gpiv_sort_3(const unsigned long n, gfloat arr[], gfloat arr_2[], gfloat arr_3[])
Orders array arr AND its belonging arrays arr_2 and arr_3 Also swaps accompanying arrays...
gboolean gpiv_fscan_iph_nl(FILE *fp_h, const gchar *MOD_KEY, const gchar *PAR_KEY, const gboolean use_mod_key, gchar *line, const gchar *par_name, gint *parameter, const gboolean verbose, FILE *fp)
Scans line string on integer parameter key and value or image header value (without program key)...
gboolean gpiv_scan_fph(const gchar *MOD_KEY, const gchar *PAR_KEY, const gboolean use_mod_key, const gchar *line, const gchar *par_name, gfloat *parameter, const gboolean verbose, FILE *fp)
Scans line string on gfloat parameter/header key and value or image header value (without program key...
gboolean gpiv_scan_iph(const gchar *MOD_KEY, const gchar *PAR_KEY, const gboolean use_mod_key, const gchar *line, const gchar *par_name, gint *parameter, const gboolean verbose, FILE *fp)
Scans line string on int parameter key and value or image header value (without program key)...
void gpiv_scan_parameter(const gchar *PAR_KEY, const gchar *parfile, void *pstruct, gboolean verbose)
Reads parameters from local parameter file PARFILE.