libdap Updated for version 3.21.0
libdap4 is an implementation of OPeNDAP's DAP protocol.
gse_parser.h
1// -*- mode: c++; c-basic-offset:4 -*-
2
3// This file is part of libdap, A C++ implementation of the OPeNDAP Data
4// Access Protocol.
5
6// Copyright (c) 2006 OPeNDAP, Inc.
7// Author: James Gallagher <jgallagher@opendap.org>
8//
9// This library is free software; you can redistribute it and/or
10// modify it under the terms of the GNU Lesser General Public
11// License as published by the Free Software Foundation; either
12// version 2.1 of the License, or (at your option) any later version.
13//
14// This library is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17// Lesser General Public License for more details.
18//
19// You should have received a copy of the GNU Lesser General Public
20// License along with this library; if not, write to the Free Software
21// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22//
23// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24
25#define YYDEBUG 1
26#undef YYERROR_VERBOSE
27#define YY_NO_UNPUT 1
28
29#define ID_MAX 256
30
31#ifndef TRUE
32#define TRUE 1
33#define FALSE 0
34#endif
35
36namespace libdap {
37class Grid;
38}
39
40namespace functions {
41
42class GSEClause;
43
46struct gse_arg {
47 GSEClause *_gsec; // The gse parsed.
48 libdap::Grid *_grid; // The Grid being constrained.
49 int _status; // The parser's status.
50
51 gse_arg() : _gsec(0), _grid(0), _status(1) {}
52 gse_arg(libdap::Grid *g) : _gsec(0), _grid(g), _status(1) {}
53 virtual ~gse_arg() {}
54
55 void set_gsec(GSEClause *gsec) { _gsec = gsec; }
56 GSEClause *get_gsec() { return _gsec; }
57 void set_grid(libdap::Grid *g) { _grid = g; }
58 libdap::Grid *get_grid() { return _grid; }
59 void set_status(int stat) { _status = stat; }
60 int get_status() { return _status; }
61};
62
63} // namespace functions
Holds the Grid data type.
Definition Grid.h:121
top level DAP object to house generic methods
Definition AISConnect.cc:30