1 /********************************************************************* 2 array - Functions to read/write arrays from/to files. 3 This is part of GNU Astronomy Utilities (Gnuastro) package. 4 5 Original author: 6 Mohammad Akhlaghi <mohammad@akhlaghi.org> 7 Contributing author(s): 8 Copyright (C) 2018-2021, Free Software Foundation, Inc. 9 10 Gnuastro is free software: you can redistribute it and/or modify it 11 under the terms of the GNU General Public License as published by the 12 Free Software Foundation, either version 3 of the License, or (at your 13 option) any later version. 14 15 Gnuastro is distributed in the hope that it will be useful, but 16 WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with Gnuastro. If not, see <http://www.gnu.org/licenses/>. 22 **********************************************************************/ 23 #ifndef __GAL_ARRAY_H__ 24 #define __GAL_ARRAY_H__ 25 26 /* Include other headers if necessary here. Note that other header files 27 must be included before the C++ preparations below */ 28 #include <gnuastro/data.h> 29 30 31 /* C++ Preparations */ 32 #undef __BEGIN_C_DECLS 33 #undef __END_C_DECLS 34 #ifdef __cplusplus 35 # define __BEGIN_C_DECLS extern "C" { 36 # define __END_C_DECLS } 37 #else 38 # define __BEGIN_C_DECLS /* empty */ 39 # define __END_C_DECLS /* empty */ 40 #endif 41 /* End of C++ preparations */ 42 43 44 45 46 47 /* Actual header contants (the above were for the Pre-processor). */ 48 __BEGIN_C_DECLS /* From C++ preparations */ 49 50 51 52 53 54 /* Functions */ 55 int 56 gal_array_name_recognized(char *name); 57 58 int 59 gal_array_name_recognized_multiext(char *name); 60 61 int 62 gal_array_file_recognized(char *name); 63 64 gal_data_t * 65 gal_array_read(char *filename, char *extension, gal_list_str_t *lines, 66 size_t minmapsize, int quietmmap); 67 68 gal_data_t * 69 gal_array_read_to_type(char *filename, char *extension, 70 gal_list_str_t *lines, uint8_t type, 71 size_t minmapsize, int quietmmap); 72 73 gal_data_t * 74 gal_array_read_one_ch(char *filename, char *extension, gal_list_str_t *lines, 75 size_t minmapsize, int quietmmap); 76 77 gal_data_t * 78 gal_array_read_one_ch_to_type(char *filename, char *extension, 79 gal_list_str_t *lines, uint8_t type, 80 size_t minmapsize, int quietmmap); 81 82 83 __END_C_DECLS /* From C++ preparations */ 84 85 #endif /* __GAL_TIFF_H__ */ 86