1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 * Copyright by The HDF Group. * 3 * Copyright by the Board of Trustees of the University of Illinois. * 4 * All rights reserved. * 5 * * 6 * This file is part of HDF. The full HDF copyright notice, including * 7 * terms governing use, modification, and redistribution, is contained in * 8 * the COPYING file, which can be found at the root of the source code * 9 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. * 10 * If you do not have access to either file, you may request a copy from * 11 * help@hdfgroup.org. * 12 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 13 14 15 #ifndef REPACK_PARSE_H_ 16 #define REPACK_PARSE_H_ 17 18 #include "hdf.h" 19 #include "mfhdf.h" 20 #include "hrepack.h" 21 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 int parse_number(char *str); 28 29 30 /* compression */ 31 32 obj_list_t* parse_comp(const char *str, int *n_objs, comp_info_t *comp); 33 const char* get_scomp(comp_coder_t code); 34 35 /* chunking */ 36 37 obj_list_t* parse_chunk(const char *str, int *n_objs, int32 *chunk_lengths, int *chunk_rank); 38 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 45 #endif /* REPACK_PARSE_H_ */ 46