MUSE Pipeline Reference Manual  2.1.1
muse_table.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set sw=2 sts=2 et cin: */
3 /*
4  * This file is part of the MUSE Instrument Pipeline
5  * Copyright (C) 2016 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  * 02110-1301, USA.
21  */
22 
23 #ifndef MUSE_TABLE_H
24 #define MUSE_TABLE_H
25 
26 /*----------------------------------------------------------------------------*
27  * Includes *
28  *----------------------------------------------------------------------------*/
29 #include <cpl.h>
30 
31 /*----------------------------------------------------------------------------*
32  * Data structures *
33  *----------------------------------------------------------------------------*/
34 
38 /*----------------------------------------------------------------------------*/
42 /*----------------------------------------------------------------------------*/
43 typedef struct {
49  cpl_table *table;
56  cpl_propertylist *header;
57 } muse_table;
58 
61 /*----------------------------------------------------------------------------*
62  * Function prototypes *
63  *----------------------------------------------------------------------------*/
66 muse_table *muse_table_load(const char *, unsigned char);
67 cpl_error_code muse_table_save(muse_table *, const char *);
68 
69 #endif /* MUSE_TABLE_H */
cpl_error_code muse_table_save(muse_table *, const char *)
Save the data and the FITS headers of a MUSE table to a file.
Definition: muse_table.c:173
muse_table * muse_table_new(void)
Allocate memory for a new muse_table object.
Definition: muse_table.c:63
cpl_table * table
The table.
Definition: muse_table.h:49
Structure to store a table together with a property list.
Definition: muse_table.h:43
void muse_table_delete(muse_table *)
Deallocate memory associated to a muse_table object.
Definition: muse_table.c:80
cpl_propertylist * header
the header
Definition: muse_table.h:56
muse_table * muse_table_load(const char *, unsigned char)
Load a table file and its primary FITS header.
Definition: muse_table.c:106