irplib_plugin.h

00001 /* $Id: irplib_plugin.h,v 1.22 2008/03/26 08:46:28 llundin Exp $
00002  *
00003  * This file is part of the irplib package 
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: llundin $
00023  * $Date: 2008/03/26 08:46:28 $
00024  * $Revision: 1.22 $
00025  * $Name: HEAD $
00026  */
00027 
00028 #ifndef IRPLIB_PLUGIN_H
00029 #define IRPLIB_PLUGIN_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <irplib_utils.h>  /* irplib_reset() */
00036 
00037 #include <cpl.h>
00038 
00039 /*-----------------------------------------------------------------------------
00040                                    Define
00041  -----------------------------------------------------------------------------*/
00042 
00043 /* FIXME: Drop once CPL 4.0 is no longer supported */
00044 
00045 /* A macro to generate the pipeline copyright and license */
00046 #define irplib_get_license cpl_get_license
00047 
00048 #define IRPLIB_RECIPE_DEFINE CPL_RECIPE_DEFINE
00049 
00050 /* Needed (by uves) to concatenate two macro arguments */
00051 #define IRPLIB_CONCAT(a,b) a ## _ ## b
00052 #define IRPLIB_CONCAT2X(a,b) IRPLIB_CONCAT(a,b)
00053 
00054 /*-----------------------------------------------------------------------------
00055                                    Function prototypes
00056  -----------------------------------------------------------------------------*/
00057 
00058 int irplib_plugin_test(cpl_pluginlist *, size_t, const char *[]);
00059 
00060 cpl_error_code irplib_parameterlist_set_string(cpl_parameterlist *,
00061                                                const char *, const char *,
00062                                                const char *, const char *, 
00063                                                const char *, const char *,
00064                                                const char *);
00065 
00066 cpl_error_code irplib_parameterlist_set_bool(cpl_parameterlist *,
00067                                              const char *, const char *,
00068                                              const char *, cpl_boolean,
00069                                              const char *, const char *,
00070                                              const char *);
00071 
00072 cpl_error_code irplib_parameterlist_set_int(cpl_parameterlist *,
00073                                             const char *, const char *,
00074                                             const char *, int,
00075                                             const char *, const char *,
00076                                             const char *);
00077 
00078 cpl_error_code irplib_parameterlist_set_double(cpl_parameterlist *,
00079                                                const char *, const char *,
00080                                                const char *, double, 
00081                                                const char *, const char *,
00082                                                const char *);
00083 
00084 const char * irplib_parameterlist_get_string(const cpl_parameterlist *,
00085                                              const char *, const char *,
00086                                              const char *);
00087 
00088 cpl_boolean irplib_parameterlist_get_bool(const cpl_parameterlist *,
00089                                           const char *, const char *,
00090                                           const char *);
00091 
00092 int irplib_parameterlist_get_int(const cpl_parameterlist *,
00093                                  const char *, const char *,
00094                                  const char *);
00095 
00096 double irplib_parameterlist_get_double(const cpl_parameterlist *,
00097                                        const char *, const char *,
00098                                        const char *);
00099 
00100 #endif

Generated on Thu Mar 24 11:59:39 2011 for VISIR Pipeline Reference Manual by  doxygen 1.5.8