bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
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{
42
43class GSEClause;
44
47struct gse_arg
48{
49 GSEClause *_gsec; // The gse parsed.
50 libdap::Grid *_grid; // The Grid being constrained.
51 libdap::Array *_coverage; // The Dap4 Array being constrained (aka Coverage)
52 int _status; // The parser's status.
53
54 gse_arg(): _gsec(0), _grid(0), _coverage(0), _status(1)
55 {}
56 gse_arg(libdap::Grid *g): _gsec(0), _grid(g), _coverage(0), _status(1)
57 {}
58 gse_arg(libdap::Array *a): _gsec(0), _grid(0), _coverage(a), _status(1)
59 {}
60 virtual ~gse_arg()
61 {}
62
63 void set_gsec(GSEClause *gsec)
64 {
65 _gsec = gsec;
66 }
67 GSEClause *get_gsec()
68 {
69 return _gsec;
70 }
71 void set_grid(libdap::Grid *g)
72 {
73 _grid = g;
74 }
75 libdap::Grid *get_grid()
76 {
77 return _grid;
78 }
79 void set_coverage(libdap::Array *a)
80 {
81 _coverage = a;
82 }
83 libdap::Array *get_coverage()
84 {
85 return _coverage;
86 }
87 void set_status(int stat)
88 {
89 _status = stat;
90 }
91 int get_status()
92 {
93 return _status;
94 }
95};
96
97} // namespace libdap