cfitsio  3390
Functions | Variables
grparser.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fitsio2.h"
#include "grparser.h"
Include dependency graph for grparser.c:

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)
 
int fits_execute_template (fitsfile *ff, char *ngp_template, int *status)
 

Variables

NGP_RAW_LINE ngp_curline = { NULL, NULL, NULL, NGP_TTYPE_UNKNOWN, NULL, NGP_FORMAT_OK, 0 }
 
NGP_RAW_LINE ngp_prevline = { NULL, NULL, NULL, NGP_TTYPE_UNKNOWN, NULL, NGP_FORMAT_OK, 0 }
 
int ngp_inclevel = 0
 
int ngp_grplevel = 0
 
FILE * ngp_fp [NGP_MAX_INCLUDE]
 
int ngp_keyidx = NGP_TOKEN_UNKNOWN
 
NGP_TOKEN ngp_linkey
 
char ngp_master_dir [NGP_MAX_FNAME]
 
NGP_TKDEF ngp_tkdef []
 
int master_grp_idx = 1
 
int ngp_extver_tab_size = 0
 
NGP_EXTVER_TABngp_extver_tab = NULL
 

Function Documentation

int fits_execute_template ( fitsfile ff,
char *  ngp_template,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

int master_grp_idx = 1
NGP_RAW_LINE ngp_curline = { NULL, NULL, NULL, NGP_TTYPE_UNKNOWN, NULL, NGP_FORMAT_OK, 0 }
NGP_EXTVER_TAB* ngp_extver_tab = NULL
int ngp_extver_tab_size = 0
FILE* ngp_fp[NGP_MAX_INCLUDE]
int ngp_grplevel = 0
int ngp_inclevel = 0
int ngp_keyidx = NGP_TOKEN_UNKNOWN
NGP_TOKEN ngp_linkey
char ngp_master_dir[NGP_MAX_FNAME]
NGP_RAW_LINE ngp_prevline = { NULL, NULL, NULL, NGP_TTYPE_UNKNOWN, NULL, NGP_FORMAT_OK, 0 }
NGP_TKDEF ngp_tkdef[]
Initial value:
=
{ { "\\INCLUDE", NGP_TOKEN_INCLUDE },
{ "\\GROUP", NGP_TOKEN_GROUP },
{ "\\END", NGP_TOKEN_END },
{ "XTENSION", NGP_TOKEN_XTENSION },
{ "SIMPLE", NGP_TOKEN_SIMPLE },
}
#define NGP_TOKEN_GROUP
Definition: grparser.h:44
#define NGP_TOKEN_END
Definition: grparser.h:45
#define NGP_TOKEN_SIMPLE
Definition: grparser.h:47
#define NGP_TOKEN_XTENSION
Definition: grparser.h:46
#define NGP_TOKEN_INCLUDE
Definition: grparser.h:43
#define NGP_TOKEN_UNKNOWN
Definition: grparser.h:42