cfitsio  3390
Data Structures | Macros | Typedefs | Functions | Variables
grparser.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  NGP_RAW_LINE_STRUCT
 
union  NGP_TOKVAL_UNION
 
struct  NGP_TOKVAL_UNION::NGP_COMPLEX_STRUCT
 
struct  NGP_TOKEN_STRUCT
 
struct  NGP_HDU_STRUCT
 
struct  NGP_TKDEF_STRUCT
 
struct  NGP_EXTVER_TAB_STRUCT
 

Macros

#define NGP_ALLOCCHUNK   (1000)
 
#define NGP_MAX_INCLUDE   (10) /* include file nesting limit */
 
#define NGP_MAX_COMMENT   (80) /* max size for comment */
 
#define NGP_MAX_NAME   FLEN_KEYWORD /* max size for KEYWORD (FITS limits it to 8 chars) */
 
#define NGP_MAX_STRING   (80) /* max size for various strings */
 
#define NGP_MAX_ARRAY_DIM   (999) /* max. number of dimensions in array */
 
#define NGP_MAX_FNAME   (1000) /* max size of combined path+fname */
 
#define NGP_MAX_ENVFILES   (10000) /* max size of CFITSIO_INCLUDE_FILES env. variable */
 
#define NGP_TOKEN_UNKNOWN   (-1) /* token type unknown */
 
#define NGP_TOKEN_INCLUDE   (0) /* \INCLUDE token */
 
#define NGP_TOKEN_GROUP   (1) /* \GROUP token */
 
#define NGP_TOKEN_END   (2) /* \END token */
 
#define NGP_TOKEN_XTENSION   (3) /* XTENSION token */
 
#define NGP_TOKEN_SIMPLE   (4) /* SIMPLE token */
 
#define NGP_TOKEN_EOF   (5) /* End Of File pseudo token */
 
#define NGP_TTYPE_UNKNOWN   (0) /* undef (yet) token type - invalid to print/write to disk */
 
#define NGP_TTYPE_BOOL   (1) /* boolean, it is 'T' or 'F' */
 
#define NGP_TTYPE_STRING   (2) /* something withing "" or starting with letter */
 
#define NGP_TTYPE_INT   (3) /* starting with digit and not with '.' */
 
#define NGP_TTYPE_REAL   (4) /* digits + '.' */
 
#define NGP_TTYPE_COMPLEX   (5) /* 2 reals, separated with ',' */
 
#define NGP_TTYPE_NULL   (6) /* NULL token, format is : NAME = / comment */
 
#define NGP_TTYPE_RAW   (7) /* HISTORY/COMMENT/8SPACES + comment string without / */
 
#define NGP_FOUND_EQUAL_SIGN   (1) /* line contains '=' after keyword name */
 
#define NGP_FORMAT_OK   (0) /* line format OK */
 
#define NGP_FORMAT_ERROR   (1) /* line format error */
 
#define NGP_NODE_INVALID   (0) /* default node type - invalid (to catch errors) */
 
#define NGP_NODE_IMAGE   (1) /* IMAGE type */
 
#define NGP_NODE_ATABLE   (2) /* ASCII table type */
 
#define NGP_NODE_BTABLE   (3) /* BINARY table type */
 
#define NGP_NON_SYSTEM_ONLY   (0) /* save all keywords except NAXIS,BITPIX,etc.. */
 
#define NGP_REALLY_ALL   (1) /* save really all keywords */
 
#define NGP_XTENSION_SIMPLE   (1) /* HDU defined with SIMPLE T */
 
#define NGP_XTENSION_FIRST   (2) /* this is first extension in template */
 
#define NGP_LINE_REREAD   (1) /* reread line */
 
#define NGP_BITPIX_INVALID   (-12345) /* default BITPIX (to catch errors) */
 
#define ngp_alloc(x)   malloc(x)
 
#define ngp_free(x)   free(x)
 
#define ngp_realloc(x, y)   realloc(x,y)
 

Typedefs

typedef struct NGP_RAW_LINE_STRUCT NGP_RAW_LINE
 
typedef union NGP_TOKVAL_UNION NGP_TOKVAL
 
typedef struct NGP_TOKEN_STRUCT NGP_TOKEN
 
typedef struct NGP_HDU_STRUCT NGP_HDU
 
typedef struct NGP_TKDEF_STRUCT NGP_TKDEF
 
typedef struct NGP_EXTVER_TAB_STRUCT NGP_EXTVER_TAB
 

Functions

int ngp_get_extver (char *extname, int *version)
 
int ngp_set_extver (char *extname, int version)
 
int ngp_delete_extver_tab (void)
 
int ngp_strcasecmp (char *p1, char *p2)
 
int ngp_strcasencmp (char *p1, char *p2, int n)
 
int ngp_line_from_file (FILE *fp, char **p)
 
int ngp_free_line (void)
 
int ngp_free_prevline (void)
 
int ngp_read_line_buffered (FILE *fp)
 
int ngp_unread_line (void)
 
int ngp_extract_tokens (NGP_RAW_LINE *cl)
 
int ngp_include_file (char *fname)
 
int ngp_read_line (int ignore_blank_lines)
 
int ngp_keyword_is_write (NGP_TOKEN *ngp_tok)
 
int ngp_keyword_all_write (NGP_HDU *ngph, fitsfile *ffp, int mode)
 
int ngp_hdu_init (NGP_HDU *ngph)
 
int ngp_hdu_clear (NGP_HDU *ngph)
 
int ngp_hdu_insert_token (NGP_HDU *ngph, NGP_TOKEN *newtok)
 
int ngp_append_columns (fitsfile *ff, NGP_HDU *ngph, int aftercol)
 
int ngp_read_xtension (fitsfile *ff, int parent_hn, int simple_mode)
 
int ngp_read_group (fitsfile *ff, char *grpname, int parent_hn)
 

Variables

NGP_RAW_LINE ngp_curline
 
NGP_RAW_LINE ngp_prevline
 
int ngp_extver_tab_size
 
NGP_EXTVER_TABngp_extver_tab
 

Macro Definition Documentation

#define ngp_alloc (   x)    malloc(x)
#define NGP_ALLOCCHUNK   (1000)
#define NGP_BITPIX_INVALID   (-12345) /* default BITPIX (to catch errors) */
#define NGP_FORMAT_ERROR   (1) /* line format error */
#define NGP_FORMAT_OK   (0) /* line format OK */
#define NGP_FOUND_EQUAL_SIGN   (1) /* line contains '=' after keyword name */
#define ngp_free (   x)    free(x)
#define NGP_LINE_REREAD   (1) /* reread line */
#define NGP_MAX_ARRAY_DIM   (999) /* max. number of dimensions in array */
#define NGP_MAX_COMMENT   (80) /* max size for comment */
#define NGP_MAX_ENVFILES   (10000) /* max size of CFITSIO_INCLUDE_FILES env. variable */
#define NGP_MAX_FNAME   (1000) /* max size of combined path+fname */
#define NGP_MAX_INCLUDE   (10) /* include file nesting limit */
#define NGP_MAX_NAME   FLEN_KEYWORD /* max size for KEYWORD (FITS limits it to 8 chars) */
#define NGP_MAX_STRING   (80) /* max size for various strings */
#define NGP_NODE_ATABLE   (2) /* ASCII table type */
#define NGP_NODE_BTABLE   (3) /* BINARY table type */
#define NGP_NODE_IMAGE   (1) /* IMAGE type */
#define NGP_NODE_INVALID   (0) /* default node type - invalid (to catch errors) */
#define NGP_NON_SYSTEM_ONLY   (0) /* save all keywords except NAXIS,BITPIX,etc.. */
#define ngp_realloc (   x,
 
)    realloc(x,y)
#define NGP_REALLY_ALL   (1) /* save really all keywords */
#define NGP_TOKEN_END   (2) /* \END token */
#define NGP_TOKEN_EOF   (5) /* End Of File pseudo token */
#define NGP_TOKEN_GROUP   (1) /* \GROUP token */
#define NGP_TOKEN_INCLUDE   (0) /* \INCLUDE token */
#define NGP_TOKEN_SIMPLE   (4) /* SIMPLE token */
#define NGP_TOKEN_UNKNOWN   (-1) /* token type unknown */
#define NGP_TOKEN_XTENSION   (3) /* XTENSION token */
#define NGP_TTYPE_BOOL   (1) /* boolean, it is 'T' or 'F' */
#define NGP_TTYPE_COMPLEX   (5) /* 2 reals, separated with ',' */
#define NGP_TTYPE_INT   (3) /* starting with digit and not with '.' */
#define NGP_TTYPE_NULL   (6) /* NULL token, format is : NAME = / comment */
#define NGP_TTYPE_RAW   (7) /* HISTORY/COMMENT/8SPACES + comment string without / */
#define NGP_TTYPE_REAL   (4) /* digits + '.' */
#define NGP_TTYPE_STRING   (2) /* something withing "" or starting with letter */
#define NGP_TTYPE_UNKNOWN   (0) /* undef (yet) token type - invalid to print/write to disk */
#define NGP_XTENSION_FIRST   (2) /* this is first extension in template */
#define NGP_XTENSION_SIMPLE   (1) /* HDU defined with SIMPLE T */

Typedef Documentation

typedef struct NGP_HDU_STRUCT NGP_HDU
typedef struct NGP_TKDEF_STRUCT NGP_TKDEF
typedef struct NGP_TOKEN_STRUCT NGP_TOKEN

Function Documentation

int ngp_append_columns ( fitsfile ff,
NGP_HDU ngph,
int  aftercol 
)

Here is the caller graph for this function:

int ngp_delete_extver_tab ( void  )

Here is the caller graph for this function:

int ngp_extract_tokens ( NGP_RAW_LINE cl)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_free_line ( void  )

Here is the caller graph for this function:

int ngp_free_prevline ( void  )

Here is the caller graph for this function:

int ngp_get_extver ( char *  extname,
int *  version 
)

Here is the caller graph for this function:

int ngp_hdu_clear ( NGP_HDU ngph)

Here is the caller graph for this function:

int ngp_hdu_init ( NGP_HDU ngph)

Here is the caller graph for this function:

int ngp_hdu_insert_token ( NGP_HDU ngph,
NGP_TOKEN newtok 
)

Here is the caller graph for this function:

int ngp_include_file ( char *  fname)

Here is the caller graph for this function:

int ngp_keyword_all_write ( NGP_HDU ngph,
fitsfile ffp,
int  mode 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_keyword_is_write ( NGP_TOKEN ngp_tok)

Here is the caller graph for this function:

int ngp_line_from_file ( FILE *  fp,
char **  p 
)

Here is the caller graph for this function:

int ngp_read_group ( fitsfile ff,
char *  grpname,
int  parent_hn 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_read_line ( int  ignore_blank_lines)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_read_line_buffered ( FILE *  fp)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_read_xtension ( fitsfile ff,
int  parent_hn,
int  simple_mode 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ngp_set_extver ( char *  extname,
int  version 
)

Here is the caller graph for this function:

int ngp_strcasecmp ( char *  p1,
char *  p2 
)

Here is the caller graph for this function:

int ngp_strcasencmp ( char *  p1,
char *  p2,
int  n 
)

Here is the caller graph for this function:

int ngp_unread_line ( void  )

Here is the caller graph for this function:

Variable Documentation

NGP_RAW_LINE ngp_curline
NGP_EXTVER_TAB* ngp_extver_tab
int ngp_extver_tab_size
NGP_RAW_LINE ngp_prevline