QJson home page
/builddir/build/BUILD/qjson-0.8.1/src/parser_p.h
00001 /* This file is part of QJson
00002  *
00003  * Copyright (C) 2008 Flavio Castelli <flavio.castelli@gmail.com>
00004  * Copyright (C) 2009 Michael Leupold <lemma@confuego.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License version 2.1, as published by the Free Software Foundation.
00009  * 
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef QJSON_PARSER_P_H
00023 #define QJSON_PARSER_P_H
00024 
00025 #include "parser.h"
00026 
00027 #include <QtCore/QString>
00028 #include <QtCore/QVariant>
00029 
00030 class JSonScanner;
00031 
00032 namespace yy {
00033   class json_parser;
00034 }
00035 
00036 namespace QJson {
00037 
00038   class ParserPrivate
00039   {
00040     public:
00041       ParserPrivate();
00042       ~ParserPrivate();
00043 
00044       void setError(QString errorMsg, int line);
00045 
00046       JSonScanner* m_scanner;
00047       bool m_negate;
00048       bool m_error;
00049       int m_errorLine;
00050       QString m_errorMsg;
00051       QVariant m_result;
00052       bool m_specialNumbersAllowed;
00053   };
00054 }
00055 
00056 #endif // QJSON_PARSER_H

SourceForge Logo hosts this site. Send comments to:
QJson Developers