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 reset(); 00045 00046 void setError(QString errorMsg, int line); 00047 00048 JSonScanner* m_scanner; 00049 bool m_error; 00050 int m_errorLine; 00051 QString m_errorMsg; 00052 QVariant m_result; 00053 bool m_specialNumbersAllowed; 00054 }; 00055 } 00056 00057 #endif // QJSON_PARSER_H
|
hosts this site. |
Send comments to: QJson Developers |