libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
parser.h File Reference
#include "Error.h"
#include "parser-util.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  libdap::parser_arg
 Pass parameters by reference to a parser. More...
 

Namespaces

namespace  libdap
 top level DAP object to house generic methods
 

Macros

#define FALSE   0
 
#define ID_MAX   256
 
#define TRUE   1
 
#define YY_NO_UNPUT   1
 
#define YYDEBUG   1
 

Functions

parse_error

Generate error messages for the various parsers.

parser_error() generates error messages for the various parsers used by libdap. There are two versions of the function, one which takes a const char *message and a const int line_num and writes the message and line number too stderr and a second which takes an additional parser_arg arg parameter and writes the error message into an Error object which is returned to the caller via the arg parameter.

Note
{The second version of this function also accepts a third parameter (const char *context) which can be used to provide an additional line of information beyond what is in the string message.}
Returns
void
void libdap::parse_error (const string &msg, const int line_num, const char *context)
 
void libdap::parse_error (parser_arg *arg, const char *msg, const int line_num, const char *context)
 

Macro Definition Documentation

◆ FALSE

#define FALSE   0

Definition at line 51 of file parser.h.

◆ ID_MAX

#define ID_MAX   256

Definition at line 47 of file parser.h.

◆ TRUE

#define TRUE   1

Definition at line 50 of file parser.h.

◆ YY_NO_UNPUT

#define YY_NO_UNPUT   1

Definition at line 45 of file parser.h.

◆ YYDEBUG

#define YYDEBUG   1

Definition at line 43 of file parser.h.