OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
gse_parser.h
Go to the documentation of this file.
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 
36 namespace libdap
37 {
38 
39 class GSEClause;
40 
43 struct gse_arg
44 {
45  GSEClause *_gsec; // The gse parsed.
46  Grid *_grid; // The Grid being constrained.
47  int _status; // The parser's status.
48 
49  gse_arg(): _gsec(0), _grid(0), _status(1)
50  {}
51  gse_arg(Grid *g): _gsec(0), _grid(g), _status(1)
52  {}
53  virtual ~gse_arg()
54  {}
55 
56  void set_gsec(GSEClause *gsec)
57  {
58  _gsec = gsec;
59  }
61  {
62  return _gsec;
63  }
64  void set_grid(Grid *g)
65  {
66  _grid = g;
67  }
68  Grid *get_grid()
69  {
70  return _grid;
71  }
72  void set_status(int stat)
73  {
74  _status = stat;
75  }
76  int get_status()
77  {
78  return _status;
79  }
80 };
81 
82 } // namespace libdap
int get_status()
Definition: gse_parser.h:76
GSEClause * _gsec
Definition: gse_parser.h:45
GSEClause * get_gsec()
Definition: gse_parser.h:60
virtual ~gse_arg()
Definition: gse_parser.h:53
Argument to the GSE parser.
Definition: gse_parser.h:43
void set_status(int stat)
Definition: gse_parser.h:72
Grid * get_grid()
Definition: gse_parser.h:68
Holds the results of parsing one of the Grid Selection Expression clauses.
Definition: GSEClause.h:65
void set_gsec(GSEClause *gsec)
Definition: gse_parser.h:56
gse_arg(Grid *g)
Definition: gse_parser.h:51
void set_grid(Grid *g)
Definition: gse_parser.h:64