~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to buildtools/lib/parsers/autotools/autotoolsdriver.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2005 by Alexander Dymo                                  *
3
 
 *   adymo@kdevelop.org                                                    *
4
 
 *                                                                         *
5
 
 *   Copyright (c) 2005 by Matt Rogers                                     *
6
 
 *   mattr@kde.org                                                         *
7
 
 *                                                                         *
8
 
 *   This program is free software; you can redistribute it and/or modify  *
9
 
 *   it under the terms of the GNU Library General Public License as       *
10
 
 *   published by the Free Software Foundation; either version 2 of the    *
11
 
 *   License, or (at your option) any later version.                       *
12
 
 *                                                                         *
13
 
 *   This program is distributed in the hope that it will be useful,       *
14
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
15
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
16
 
 *   GNU General Public License for more details.                          *
17
 
 *                                                                         *
18
 
 *   You should have received a copy of the GNU Library General Public     *
19
 
 *   License along with this program; if not, write to the                 *
20
 
 *   Free Software Foundation, Inc.,                                       *
21
 
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
22
 
 ***************************************************************************/
23
 
#ifndef QMAKEQMAKEDRIVER_H
24
 
#define QMAKEQMAKEDRIVER_H
25
 
 
26
 
#include <qvaluelist.h>
27
 
#include <kurl.h>
28
 
 
29
 
namespace AutoTools {
30
 
 
31
 
/**
32
 
@file autotoolsdriver.h
33
 
Driver for a qmake parser.
34
 
*/
35
 
 
36
 
class ProjectAST;
37
 
 
38
 
/**
39
 
 * Driver.
40
 
 * Use methods of this class to lauch parsing and build the AST.
41
 
 */
42
 
class Driver
43
 
{
44
 
public:
45
 
        /**
46
 
         * Parses the file @p fileName and stores the resulting ProjectAST root
47
 
         * into @p ast. @p ast should not be initialized before. Driver will
48
 
         * initialize it on its own.
49
 
         * @return The result of parsing. Result is 0 on success and <> 0 on failure.
50
 
         */
51
 
        static int parseFile(const char *fileName, ProjectAST **ast);
52
 
        static int parseFile(QString fileName, ProjectAST **ast);
53
 
        static int parseFile(KURL fileName, ProjectAST **ast);
54
 
        
55
 
/*    template<class Op>
56
 
    static void walkAST(Op &op, const ProjectAST *ast)
57
 
    {
58
 
//         op(ast);
59
 
        for (QValueList<QMake::AST*>::const_iterator it = ast->statements.constBegin();
60
 
                it != ast->statements.constEnd(); ++it)
61
 
        {
62
 
            const AST *child = *it;
63
 
            if (child->nodeType() == AST::ProjectAST)
64
 
                walkAST<Op>(op, static_cast<const QMake::ProjectAST*>(child));
65
 
            else
66
 
                op(child);
67
 
        }
68
 
    }
69
 
*/
70
 
};
71
 
 
72
 
}
73
 
 
74
 
#endif
75
 
 
76
 
// kate: indent-mode csands; tab-width 4; space-indent off; auto-insert-doxygen on;