libdap
Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
D4CEScanner.h
Go to the documentation of this file.
1
2
// -*- mode: c++; c-basic-offset:4 -*-
3
4
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
5
// Access Protocol.
6
7
// Copyright (c) 2002,2003 OPeNDAP, Inc.
8
// Author: James Gallagher <jgallagher@opendap.org>
9
//
10
// This library is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU Lesser General Public
12
// License as published by the Free Software Foundation; either
13
// version 2.1 of the License, or (at your option) any later version.
14
//
15
// This library is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
//
24
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
#ifndef D4CESCANNER_H_
27
#define D4CESCANNER_H_
28
29
// Only include FlexLexer.h if it hasn't been already included
30
#if !defined(yyFlexLexerOnce)
31
#undef yyFlexLexer
32
#define yyFlexLexer d4_ceFlexLexer
33
#include "FlexLexer.h"
34
#endif
35
36
#ifndef YY_NULL
37
#if defined __cplusplus && 201103L <= __cplusplus
38
#define YY_NULL nullptr
39
#else
40
#define YY_NULL 0
41
#endif
42
#endif
43
44
#undef YY_DECL
45
#define YY_DECL int libdap::D4CEScanner::yylex()
46
47
#include "d4_ce_parser.tab.hh"
48
49
namespace
libdap
{
50
51
class
D4CEScanner
:
public
d4_ceFlexLexer
{
52
public
:
53
D4CEScanner
(std::istream &in) :
d4_ceFlexLexer
(&in), yylval(0), loc(0) {};
54
55
int
yylex
(libdap::D4CEParser::semantic_type *lval, libdap::location *l) {
56
loc = l;
57
yylval = lval;
58
return
(
yylex
());
59
}
60
61
private
:
62
/* hide this one from public view */
63
int
yylex();
64
65
/* yyval ptr */
66
libdap::D4CEParser::semantic_type *yylval;
67
68
libdap::location *loc;
69
};
70
71
}
/* end namespace libdap */
72
73
#endif
/* D4CESCANNER_H_ */
d4_ceFlexLexer
libdap::D4CEScanner::yylex
int yylex(libdap::D4CEParser::semantic_type *lval, libdap::location *l)
Definition
D4CEScanner.h:55
libdap::D4CEScanner::D4CEScanner
D4CEScanner(std::istream &in)
Definition
D4CEScanner.h:53
libdap
top level DAP object to house generic methods
Definition
AISConnect.cc:30
d4_ce
D4CEScanner.h
Generated by
1.13.2