TwiceAsNice
2019-02-18
|
#include <stdio.h>
Classes | |
union | ULONGLONG |
union | SLONGLONG |
struct | structkey |
struct | structcat |
struct | structtab |
Macros | |
#define | MAXCHARS 256 /* max. number of characters */ |
#define | WARNING_NMAX 1000 /* max. number of recorded warnings */ |
#define | RETURN_OK 0 |
#define | RETURN_ERROR (-1) |
#define | RETURN_FATAL_ERROR (-2) |
#define | BP_BYTE 8 |
#define | BP_SHORT 16 |
#define | BP_LONG 32 |
#define | BP_LONGLONG 64 |
#define | BP_FLOAT (-32) |
#define | BP_DOUBLE (-64) |
#define | FITS_SUFFIX ".fits" |
#define | FBSIZE 2880L |
#define | PADTOTAL(x) (((x-1)/FBSIZE+1)*FBSIZE) |
#define | PADEXTRA(x) ((FBSIZE - (x%FBSIZE))% FBSIZE) |
#define | OFF_T long |
Typedefs | |
typedef float | PIXTYPE |
typedef unsigned int | FLAGTYPE |
typedef size_t | KINGSIZE_T |
typedef struct structkey | keystruct |
typedef struct structcat | catstruct |
typedef struct structtab | tabstruct |
Enumerations | |
enum | h_type { H_INT, H_FLOAT, H_EXPO, H_BOOL, H_STRING, H_STRINGS, H_COMMENT, H_HCOMMENT, H_KEY, H_INT, H_FLOAT, H_EXPO, H_BOOL, H_STRING, H_STRINGS, H_COMMENT, H_HCOMMENT, H_KEY } |
enum | t_type { T_BYTE, T_SHORT, T_LONG, T_LONGLONG, T_FLOAT, T_DOUBLE, T_STRING, T_BYTE, T_SHORT, T_LONG, T_LONGLONG, T_FLOAT, T_DOUBLE, T_STRING } |
enum | access_type_t { WRITE_ONLY, READ_ONLY, WRITE_ONLY, READ_ONLY } |
enum | output_type { SHOW_ASCII, SHOW_SKYCAT, SHOW_ASCII, SHOW_SKYCAT } |
Functions | |
catstruct * | new_cat (int ncat) |
catstruct * | read_cat (char *filename) |
catstruct * | read_cats (char **filenames, int ncat) |
tabstruct * | asc2bin_tab (catstruct *catin, char *tabinname, catstruct *catout, char *taboutname) |
tabstruct * | init_readobj (tabstruct *tab, char **pbuf) |
tabstruct * | name_to_tab (catstruct *cat, char *tabname, int seg) |
tabstruct * | new_tab (char *tabname) |
tabstruct * | pos_to_tab (catstruct *cat, int pos, int seg) |
keystruct * | name_to_key (tabstruct *tab, char *keyname) |
keystruct * | new_key (char *keyname) |
keystruct * | pos_to_key (tabstruct *tab, int pos) |
keystruct * | read_key (tabstruct *tab, char *keyname) |
void | add_cleanupfilename (char *filename) |
void | cleanup_files (void) |
void | copy_tab_fromptr (tabstruct *tabin, catstruct *catout, int pos) |
void | encode_checksum (unsigned int sum, char *str) |
void | end_readobj (tabstruct *keytab, tabstruct *tab, char *buf) |
void | end_writeobj (catstruct *cat, tabstruct *tab, char *buf) |
void | error (int, char *, char *) |
void | error_installfunc (void(*func)(char *msg1, char *msg2)) |
void | fixexponent (char *s) |
void | free_body (tabstruct *tab) |
void | free_cat (catstruct **cat, int ncat) |
void | free_key (keystruct *key) |
void | free_tab (tabstruct *tab) |
void | init_writeobj (catstruct *cat, tabstruct *tab, char **pbuf) |
void | install_cleanup (void(*func)(void)) |
void | print_obj (FILE *stream, tabstruct *tab) |
void | read_keys (tabstruct *tab, char **keynames, keystruct **keys, int nkeys, unsigned char *mask) |
void | read_basic (tabstruct *tab) |
void | read_body (tabstruct *tab, PIXTYPE *ptr, size_t size) |
void | read_ibody (tabstruct *tab, FLAGTYPE *ptr, size_t size) |
void | readbasic_head (tabstruct *tab) |
void | remove_cleanupfilename (char *filename) |
void | save_cat (catstruct *cat, char *filename) |
void | save_tab (catstruct *cat, tabstruct *tab) |
void | show_keys (tabstruct *tab, char **keynames, keystruct **keys, int nkeys, unsigned char *mask, FILE *stream, int strflag, int banflag, int leadflag, output_type o_type) |
void | swapbytes (void *, int, int) |
void | ttypeconv (void *ptrin, void *ptrout, t_type ttypein, t_type ttypeout) |
void | voprint_obj (FILE *stream, tabstruct *tab) |
void | warning (char *, char *) |
void | write_body (tabstruct *tab, PIXTYPE *ptr, size_t size) |
void | write_ibody (tabstruct *tab, FLAGTYPE *ptr, size_t size) |
void | write_checksum (tabstruct *tab) |
char * | tdisptoprintf (char *tdisp, char *str) |
char * | printftotdisp (char *cprintf, char *str) |
char * | fitsnfind (char *fitsbuf, char *str, int nblock) |
char ** | tabs_list (catstruct *cat, int *n) |
char ** | keys_list (tabstruct *tab, int *n) |
char * | warning_history (void) |
unsigned int | compute_blocksum (char *buf, unsigned int sum) |
unsigned int | compute_bodysum (tabstruct *tab, unsigned int sum) |
unsigned int | decode_checksum (char *str) |
int | about_cat (catstruct *cat, FILE *stream) |
int | about_tab (catstruct *cat, char *tabname, FILE *stream) |
int | addhistoryto_cat (catstruct *cat, char *str) |
int | add_key (keystruct *key, tabstruct *tab, int pos) |
int | addkeyto_head (tabstruct *tab, keystruct *key) |
int | addkeywordto_head (tabstruct *tab, char *keyword, char *comment) |
int | add_tab (tabstruct *tab, catstruct *cat, int pos) |
int | blank_keys (tabstruct *tab) |
int | close_cat (catstruct *cat) |
int | copy_key (tabstruct *tabin, char *keyname, tabstruct *tabout, int pos) |
int | copy_tab (catstruct *catin, char *tabname, int seg, catstruct *catout, int pos) |
int | copy_tabs (catstruct *catin, catstruct *catout) |
int | copy_tabs_blind (catstruct *catin, catstruct *catout) |
int | ext_head (tabstruct *tab) |
int | findkey (char *, char *, int) |
int | findnkey (char *, char *, int, int) |
int | fitsadd (char *fitsbuf, char *keyword, char *comment) |
int | fitsfind (char *fitsbuf, char *keyword) |
int | fitspick (char *fitsbuf, char *keyword, void *ptr, h_type *htype, t_type *ttype, char *comment) |
int | fitsread (char *fitsbuf, char *keyword, void *ptr, h_type htype, t_type ttype) |
int | fitsremove (char *fitsbuf, char *keyword) |
int | fitswrite (char *fitsbuf, char *keyword, void *ptr, h_type htype, t_type ttype) |
int | get_head (tabstruct *tab) |
int | inherit_cat (catstruct *catin, catstruct *catout) |
int | init_cat (catstruct *cat) |
int | map_cat (catstruct *cat) |
int | open_cat (catstruct *cat, access_type_t at) |
int | pad_tab (catstruct *cat, KINGSIZE_T size) |
int | prim_head (tabstruct *tab) |
int | readbintabparam_head (tabstruct *tab) |
int | read_field (tabstruct *tab, char **keynames, keystruct **keys, int nkeys, int field, tabstruct *ftab) |
int | read_obj (tabstruct *keytab, tabstruct *tab, char *buf) |
int | read_obj_at (tabstruct *keytab, tabstruct *tab, char *buf, long pos) |
int | remove_key (tabstruct *tab, char *keyname) |
int | remove_keys (tabstruct *tab) |
int | removekeywordfrom_head (tabstruct *tab, char *keyword) |
int | remove_tab (catstruct *cat, char *tabname, int seg) |
int | remove_tabs (catstruct *cat) |
int | save_head (catstruct *cat, tabstruct *tab) |
int | set_maxram (size_t maxram) |
int | set_maxvram (size_t maxvram) |
int | set_swapdir (char *dirname) |
int | tab_row_len (char *, char *) |
int | tformof (char *str, t_type ttype, int n) |
int | tsizeof (char *str) |
int | update_head (tabstruct *tab) |
int | update_tab (tabstruct *tab) |
int | verify_checksum (tabstruct *tab) |
int | write_obj (tabstruct *tab, char *buf) |
int | wstrncmp (char *, char *, int) |
PIXTYPE * | alloc_body (tabstruct *tab, void(*func)(PIXTYPE *ptr, int npix)) |
FLAGTYPE * | alloc_ibody (tabstruct *tab, void(*func)(FLAGTYPE *ptr, int npix)) |
t_type | ttypeof (char *str) |
Variables | |
const int | t_size [] |
int | bswapflag |
#define BP_BYTE 8 |
#define BP_DOUBLE (-64) |
#define BP_FLOAT (-32) |
#define BP_LONG 32 |
#define BP_LONGLONG 64 |
#define BP_SHORT 16 |
#define FBSIZE 2880L |
#define FITS_SUFFIX ".fits" |
#define MAXCHARS 256 /* max. number of characters */ |
#define OFF_T long |
#define RETURN_ERROR (-1) |
#define RETURN_FATAL_ERROR (-2) |
#define RETURN_OK 0 |
#define WARNING_NMAX 1000 /* max. number of recorded warnings */ |
typedef unsigned int FLAGTYPE |
typedef size_t KINGSIZE_T |
typedef float PIXTYPE |
enum access_type_t |
enum h_type |
enum output_type |
enum t_type |
int about_cat | ( | catstruct * | cat, |
FILE * | stream | ||
) |
int about_tab | ( | catstruct * | cat, |
char * | tabname, | ||
FILE * | stream | ||
) |
void add_cleanupfilename | ( | char * | filename | ) |
int addhistoryto_cat | ( | catstruct * | cat, |
char * | str | ||
) |
int addkeywordto_head | ( | tabstruct * | tab, |
char * | keyword, | ||
char * | comment | ||
) |
tabstruct* asc2bin_tab | ( | catstruct * | catin, |
char * | tabinname, | ||
catstruct * | catout, | ||
char * | taboutname | ||
) |
int blank_keys | ( | tabstruct * | tab | ) |
void cleanup_files | ( | void | ) |
int close_cat | ( | catstruct * | cat | ) |
unsigned int compute_blocksum | ( | char * | buf, |
unsigned int | sum | ||
) |
unsigned int compute_bodysum | ( | tabstruct * | tab, |
unsigned int | sum | ||
) |
unsigned int decode_checksum | ( | char * | str | ) |
void encode_checksum | ( | unsigned int | sum, |
char * | str | ||
) |
void error | ( | int | , |
char * | , | ||
char * | |||
) |
void error_installfunc | ( | void(*)(char *msg1, char *msg2) | func | ) |
int ext_head | ( | tabstruct * | tab | ) |
int findkey | ( | char * | , |
char * | , | ||
int | |||
) |
int findnkey | ( | char * | , |
char * | , | ||
int | , | ||
int | |||
) |
int fitsadd | ( | char * | fitsbuf, |
char * | keyword, | ||
char * | comment | ||
) |
int fitsfind | ( | char * | fitsbuf, |
char * | keyword | ||
) |
char * fitsnfind | ( | char * | fitsbuf, |
char * | str, | ||
int | nblock | ||
) |
int fitspick | ( | char * | fitsbuf, |
char * | keyword, | ||
void * | ptr, | ||
h_type * | htype, | ||
t_type * | ttype, | ||
char * | comment | ||
) |
int fitsremove | ( | char * | fitsbuf, |
char * | keyword | ||
) |
void fixexponent | ( | char * | s | ) |
void free_body | ( | tabstruct * | tab | ) |
void free_cat | ( | catstruct ** | cat, |
int | ncat | ||
) |
void free_key | ( | keystruct * | key | ) |
void free_tab | ( | tabstruct * | tab | ) |
int get_head | ( | tabstruct * | tab | ) |
int init_cat | ( | catstruct * | cat | ) |
void install_cleanup | ( | void(*)(void) | func | ) |
char ** keys_list | ( | tabstruct * | tab, |
int * | n | ||
) |
int map_cat | ( | catstruct * | cat | ) |
catstruct* new_cat | ( | int | ncat | ) |
keystruct * new_key | ( | char * | keyname | ) |
tabstruct * new_tab | ( | char * | tabname | ) |
int open_cat | ( | catstruct * | cat, |
access_type_t | at | ||
) |
int pad_tab | ( | catstruct * | cat, |
KINGSIZE_T | size | ||
) |
int prim_head | ( | tabstruct * | tab | ) |
void print_obj | ( | FILE * | stream, |
tabstruct * | tab | ||
) |
char * printftotdisp | ( | char * | cprintf, |
char * | str | ||
) |
void read_basic | ( | tabstruct * | tab | ) |
catstruct * read_cat | ( | char * | filename | ) |
catstruct * read_cats | ( | char ** | filenames, |
int | ncat | ||
) |
int read_field | ( | tabstruct * | tab, |
char ** | keynames, | ||
keystruct ** | keys, | ||
int | nkeys, | ||
int | field, | ||
tabstruct * | ftab | ||
) |
! It is not necessarily the original table
! It is not necessarily the original table
void read_keys | ( | tabstruct * | tab, |
char ** | keynames, | ||
keystruct ** | keys, | ||
int | nkeys, | ||
unsigned char * | mask | ||
) |
void readbasic_head | ( | tabstruct * | tab | ) |
int readbintabparam_head | ( | tabstruct * | tab | ) |
void remove_cleanupfilename | ( | char * | filename | ) |
int remove_key | ( | tabstruct * | tab, |
char * | keyname | ||
) |
int remove_keys | ( | tabstruct * | tab | ) |
int remove_tab | ( | catstruct * | cat, |
char * | tabname, | ||
int | seg | ||
) |
int remove_tabs | ( | catstruct * | cat | ) |
int removekeywordfrom_head | ( | tabstruct * | tab, |
char * | keyword | ||
) |
void save_cat | ( | catstruct * | cat, |
char * | filename | ||
) |
int set_maxram | ( | size_t | maxram | ) |
int set_maxvram | ( | size_t | maxvram | ) |
int set_swapdir | ( | char * | dirname | ) |
void show_keys | ( | tabstruct * | tab, |
char ** | keynames, | ||
keystruct ** | keys, | ||
int | nkeys, | ||
unsigned char * | mask, | ||
FILE * | stream, | ||
int | strflag, | ||
int | banflag, | ||
int | leadflag, | ||
output_type | o_type | ||
) |
void swapbytes | ( | void * | ptr, |
int | nb, | ||
int | n | ||
) |
int tab_row_len | ( | char * | , |
char * | |||
) |
char ** tabs_list | ( | catstruct * | cat, |
int * | n | ||
) |
char* tdisptoprintf | ( | char * | tdisp, |
char * | str | ||
) |
int tformof | ( | char * | str, |
t_type | ttype, | ||
int | n | ||
) |
int tsizeof | ( | char * | str | ) |
t_type ttypeof | ( | char * | str | ) |
int update_head | ( | tabstruct * | tab | ) |
int update_tab | ( | tabstruct * | tab | ) |
int verify_checksum | ( | tabstruct * | tab | ) |
void voprint_obj | ( | FILE * | stream, |
tabstruct * | tab | ||
) |
void warning | ( | char * | , |
char * | |||
) |
char * warning_history | ( | void | ) |
void write_checksum | ( | tabstruct * | tab | ) |
int write_obj | ( | tabstruct * | tab, |
char * | buf | ||
) |
int wstrncmp | ( | char * | , |
char * | , | ||
int | |||
) |
int bswapflag |
const int t_size[] |