libdap++ Updated for version 3.8.2

libdap::parser_arg Struct Reference

Pass parameters by reference to a parser. More...

#include <parser.h>

Collaboration diagram for libdap::parser_arg:

List of all members.

Public Member Functions

Errorerror ()
void * object ()
 parser_arg ()
 parser_arg (void *obj)
void set_error (Error *obj)
void set_object (void *obj)
void set_status (int val=0)
int status ()
virtual ~parser_arg ()

Public Attributes

Error_error
void * _object
int _status

Detailed Description

parser_arg is used to pass parameters to the bison parsers and get error codes and objects in return. If status() is true, then the object() returns a pointer to the object built during the parse process. If status() is false, then the error() returns a pointer to an Error object.

Note that the object() mfunc returns a void pointer. Pass parameters by reference to a parser.

Definition at line 68 of file parser.h.


Constructor & Destructor Documentation

libdap::parser_arg::parser_arg ( ) [inline]

Definition at line 74 of file parser.h.

libdap::parser_arg::parser_arg ( void *  obj) [inline]

Definition at line 76 of file parser.h.

virtual libdap::parser_arg::~parser_arg ( ) [inline, virtual]

Definition at line 78 of file parser.h.

References _error.


Member Function Documentation

Error* libdap::parser_arg::error ( ) [inline]

Definition at line 93 of file parser.h.

References _error.

void* libdap::parser_arg::object ( ) [inline]

Definition at line 85 of file parser.h.

References _object.

void libdap::parser_arg::set_error ( Error obj) [inline]

Definition at line 97 of file parser.h.

References _error.

Referenced by libdap::parse_error().

void libdap::parser_arg::set_object ( void *  obj) [inline]

Definition at line 89 of file parser.h.

References _object.

void libdap::parser_arg::set_status ( int  val = 0) [inline]

Definition at line 105 of file parser.h.

References _status.

Referenced by libdap::parse_error().

int libdap::parser_arg::status ( ) [inline]

Definition at line 101 of file parser.h.

References _status.

Referenced by libdap::Error::parse().


Member Data Documentation

Definition at line 71 of file parser.h.

Referenced by error(), set_error(), and ~parser_arg().

Definition at line 70 of file parser.h.

Referenced by object(), and set_object().

Definition at line 72 of file parser.h.

Referenced by set_status(), and status().


The documentation for this struct was generated from the following file: