Main Page | Files | Data Structures | Functions | Global Variables |
include/gpiv/gpiv-utils.h
Go to the documentation of this file.
00001 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
00002 /*
00003    libgpiv - library for Particle Image Velocimetry
00004 
00005    Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Gerber van der Graaf
00006 
00007    This file is part of libgpiv.
00008 
00009    Libgpiv is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 2, or (at your option)
00012    any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program; if not, write to the Free Software Foundation,
00021    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
00022 
00023 
00024 
00025 
00026 -------------------------------------------------------------------------------
00027 LIBRARY:                 libgpiv:
00028 EXTERNAL FUNCTIONS:
00029                          gpiv_scan_parameter
00030                          gpiv_scan_resourcefiles
00031                          gpiv_add_datetime_to_comment
00032                          gpiv_sort_3,
00033                          gpiv_max, 
00034                          gpiv_min, 
00035                          gpiv_warning, 
00036                          gpiv_error, 
00037                          gpiv_fscan_iph_nl
00038                          gpiv_scan_iph, 
00039                          gpiv_scan_cph, 
00040                          gpiv_scan_sph, 
00041  --------------------------------------------------------------------------- */
00051 #ifndef __LIBGPIV_UTILS_H__
00052 #define __LIBGPIV_UTILS_H__
00053 
00054 #define GPIV_FAIL_INT -914
00055 
00065 void
00066 gpiv_scan_parameter         (const gchar        *PAR_KEY, 
00067                     const gchar     *parfile,
00068                     void            *pstruct,
00069                     gboolean        verbose
00070                     );
00071 
00072 
00073 
00084 gchar *
00085 gpiv_scan_resourcefiles         (const gchar        *PAR_KEY, 
00086                     void            *pstruct,
00087                     gint            verbose
00088                     );
00089 
00090 
00098 gchar *
00099 gpiv_add_datetime_to_comment        (gchar          *comment
00100                     );
00101 
00102 
00103 
00114 gchar *
00115 gpiv_sort_3             (const unsigned long    n,
00116                     gfloat          arr[],
00117                     gfloat          arr_2[],
00118                     gfloat          arr_3[]
00119                     );
00120 
00121 
00129 long 
00130 gpiv_lmax               (long           a,
00131                     long            b
00132                     );
00133 
00134 
00135 
00143 long 
00144 gpiv_lmin               (long           a,
00145                     long            b
00146                     );
00147 
00148 
00149 
00157 gint 
00158 gpiv_max                (gint           a,
00159                     gint            b
00160                     );
00161 
00162 
00163 
00171 gint 
00172 gpiv_min                (gint           a,
00173                     gint            b
00174                     );
00175 
00176 
00177 
00184 void 
00185 gpiv_warning                (gchar          *message, ...
00186                     );
00187 
00188 
00189 
00197 void 
00198 gpiv_error              (gchar          *message, ...
00199                     );
00200 
00201 
00202 
00221 gboolean
00222 gpiv_fscan_iph_nl           (FILE           *fp_h, 
00223                     const gchar     *MOD_KEY, 
00224                     const gchar     *PAR_KEY, 
00225                     const gboolean      use_mod_key,
00226                     gchar           *line, 
00227                     const gchar     *par_name, 
00228                     gint            *parameter, 
00229                     const gboolean      verbose,
00230                     FILE            *fp
00231                     );
00232 
00249 gboolean
00250 gpiv_scan_iph               (const gchar        *MOD_KEY,
00251                     const gchar     *PAR_KEY,
00252                     const gboolean      use_mod_key,
00253                     const gchar     *line,
00254                     const gchar     *par_name,
00255                     gint            *parameter,
00256                     const gboolean      verbose,
00257                     FILE            *fp
00258                     );
00259 
00260 
00261 
00278 gboolean
00279 gpiv_scan_cph               (const gchar        *MOD_KEY,
00280                     const gchar     *PAR_KEY,
00281                     const gboolean      use_mod_key,
00282                     const gchar     *line,
00283                     const gchar     *par_name,
00284                     gchar           *parameter,
00285                     const gboolean      verbose,
00286                     FILE            *fp
00287                     );
00288 
00289 
00290 
00307 gboolean
00308 gpiv_scan_fph               (const gchar        *MOD_KEY,
00309                     const gchar     *PAR_KEY,
00310                     const gboolean      use_mod_key,
00311                     const gchar     *line,
00312                     const gchar     *par_name,
00313                     gfloat          *parameter,
00314                     const gboolean      verbose,
00315                     FILE            *fp
00316                     );
00317 
00318 
00319 
00336 gboolean
00337 gpiv_scan_sph               (const gchar        *MOD_KEY,
00338                     const gchar     *PAR_KEY,
00339                     const gboolean      use_mod_key,
00340                     const gchar     *line,
00341                     const gchar     *par_name,
00342                     gchar           *parameter,
00343                     const gboolean      verbose,
00344                     FILE            *fp
00345                     );
00346 
00347 
00348 
00349 #endif /* __LIBGPIV_UTILS_H__ */