libdap  Updated for version 3.20.6
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 
36 namespace libdap {
37 class Grid;
38 }
39 
40 namespace functions
41 {
42 
43 class GSEClause;
44 
47 struct gse_arg
48 {
49  GSEClause *_gsec; // The gse parsed.
50  libdap::Grid *_grid; // The Grid being constrained.
51  int _status; // The parser's status.
52 
53  gse_arg(): _gsec(0), _grid(0), _status(1)
54  {}
55  gse_arg(libdap::Grid *g): _gsec(0), _grid(g), _status(1)
56  {}
57  virtual ~gse_arg()
58  {}
59 
60  void set_gsec(GSEClause *gsec)
61  {
62  _gsec = gsec;
63  }
64  GSEClause *get_gsec()
65  {
66  return _gsec;
67  }
68  void set_grid(libdap::Grid *g)
69  {
70  _grid = g;
71  }
72  libdap::Grid *get_grid()
73  {
74  return _grid;
75  }
76  void set_status(int stat)
77  {
78  _status = stat;
79  }
80  int get_status()
81  {
82  return _status;
83  }
84 };
85 
86 } // namespace libdap
top level DAP object to house generic methods
Definition: AISConnect.cc:30
Holds the Grid data type.
Definition: Grid.h:122