This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
/* |
| 2 |
* This file is part of the API Extractor project. |
| 3 |
* |
| 4 |
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
| 5 |
* |
| 6 |
* Contact: PySide team <contact@pyside.org> |
| 7 |
* |
| 8 |
* This program is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU General Public License |
| 10 |
* version 2 as published by the Free Software Foundation. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 20 |
* 02110-1301 USA |
| 21 |
* |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef TYPEPARSER_H |
| 25 |
#define TYPEPARSER_H |
| 26 |
|
| 27 |
#include <QtCore/QList> |
| 28 |
#include <QtCore/QString> |
| 29 |
#include <QtCore/QStringList> |
| 30 |
|
| 31 |
class TypeParser |
| 32 |
{ |
| 33 |
public: |
| 34 |
struct Info |
| 35 |
{ |
| 36 |
Info() : is_reference(false), is_constant(false), is_busted(false), indirections(0) { } |
| 37 |
QStringList qualified_name; |
| 38 |
QStringList arrays; |
| 39 |
QList<Info> template_instantiations; |
| 40 |
uint is_reference : 1; |
| 41 |
uint is_constant : 1; |
| 42 |
uint is_busted : 1; |
| 43 |
uint indirections : 5; |
| 44 |
|
| 45 |
QString toString() const; |
| 46 |
QString instantiationName() const; |
| 47 |
}; |
| 48 |
|
| 49 |
static Info parse(const QString &str); |
| 50 |
}; |
| 51 |
|
| 52 |
#endif // TYPEPARSER_H |