DETMON Pipeline Reference Manual  1.3.0
irplib_plugin.h
1 /* $Id: irplib_plugin.h,v 1.23 2012-01-11 08:03:37 llundin Exp $
2  *
3  * This file is part of the irplib package
4  * Copyright (C) 2002,2003 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: llundin $
23  * $Date: 2012-01-11 08:03:37 $
24  * $Revision: 1.23 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef IRPLIB_PLUGIN_H
29 #define IRPLIB_PLUGIN_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <irplib_utils.h> /* irplib_reset() */
36 
37 #include <cpl.h>
38 
39 /*-----------------------------------------------------------------------------
40  Define
41  -----------------------------------------------------------------------------*/
42 
43 /* Needed (by uves) to concatenate two macro arguments */
44 #define IRPLIB_CONCAT(a,b) a ## _ ## b
45 #define IRPLIB_CONCAT2X(a,b) IRPLIB_CONCAT(a,b)
46 
47 /*-----------------------------------------------------------------------------
48  Function prototypes
49  -----------------------------------------------------------------------------*/
50 
51 int irplib_plugin_test(cpl_pluginlist *, size_t, const char *[]);
52 
53 cpl_error_code irplib_parameterlist_set_string(cpl_parameterlist *,
54  const char *, const char *,
55  const char *, const char *,
56  const char *, const char *,
57  const char *);
58 
59 cpl_error_code irplib_parameterlist_set_bool(cpl_parameterlist *,
60  const char *, const char *,
61  const char *, cpl_boolean,
62  const char *, const char *,
63  const char *);
64 
65 cpl_error_code irplib_parameterlist_set_int(cpl_parameterlist *,
66  const char *, const char *,
67  const char *, int,
68  const char *, const char *,
69  const char *);
70 
71 cpl_error_code irplib_parameterlist_set_double(cpl_parameterlist *,
72  const char *, const char *,
73  const char *, double,
74  const char *, const char *,
75  const char *);
76 
77 const char * irplib_parameterlist_get_string(const cpl_parameterlist *,
78  const char *, const char *,
79  const char *);
80 
81 cpl_boolean irplib_parameterlist_get_bool(const cpl_parameterlist *,
82  const char *, const char *,
83  const char *);
84 
85 int irplib_parameterlist_get_int(const cpl_parameterlist *,
86  const char *, const char *,
87  const char *);
88 
89 double irplib_parameterlist_get_double(const cpl_parameterlist *,
90  const char *, const char *,
91  const char *);
92 
93 #endif