GIRAFFE Pipeline Reference Manual

gitable.h

00001 /* $Id: gitable.h,v 1.17 2007/03/12 12:53:23 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 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  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2007/03/12 12:53:23 $
00024  * $Revision: 1.17 $
00025  * $Name: giraffe-2_9 $
00026  */
00027 
00028 #ifndef GITABLE_H
00029 #define GITABLE_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_table.h>
00035 #include <cpl_matrix.h>
00036 #include <cpl_propertylist.h>
00037 #include <cpl_frameset.h>
00038 
00039 #include <giutils.h>
00040 
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00046 
00047 typedef struct GiTable GiTable;
00048 
00049 
00050 /*
00051  * Create, copy and destroy operations
00052  */
00053 
00054 GiTable *giraffe_table_new(void);
00055 GiTable *giraffe_table_create(cpl_table *, cpl_propertylist *);
00056 void giraffe_table_delete(GiTable *);
00057 GiTable *giraffe_table_duplicate(const GiTable *);
00058 
00059 void giraffe_table_clear(GiTable *);
00060 
00061 cxint giraffe_table_copy_matrix(GiTable *, const cxchar *, cpl_matrix *);
00062 
00063 /*
00064  * Non-modifying operations
00065  */
00066 
00067 cxint giraffe_table_is_empty(GiTable *);
00068 
00069 /*
00070  * Accessors
00071  */
00072 
00073 cpl_table *giraffe_table_get(const GiTable *);
00074 cxint      giraffe_table_set(GiTable *, cpl_table *);
00075 cpl_propertylist *giraffe_table_get_properties(const GiTable *);
00076 cxint      giraffe_table_set_properties(GiTable *, cpl_propertylist *);
00077 
00078 /*
00079  * Loading and saving operations
00080  */
00081 
00082 cxint giraffe_table_load(GiTable *self, const cxchar *filename,
00083                          cxint position, const cxchar *id);
00084 
00085 cxint giraffe_table_save(GiTable *self, const cxchar *filename);
00086 
00087 cxint giraffe_table_attach(GiTable *self, const cxchar *filename,
00088                            cxint position, const cxchar *id);
00089 
00090 cxint giraffe_table_add_info(GiTable *, const GiRecipeInfo *,
00091                              const cpl_frameset *);
00092 
00093 
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097 
00098 #endif /* GITABLE_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:29 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004