2 * FileInfo.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
15 #include "FileToken.h"
20 * @short Stores much information about a project file.
21 * @author Chris Schlaeger <cs@kde.org>
23 class FileInfo : public FileToken
26 FileInfo(ProjectFile* p, const QString& file, const QString& tp);
28 virtual ~FileInfo() { }
33 virtual QChar getC(bool expandMacros = true);
36 virtual TokenType nextToken(QString& buf);
38 virtual void setLocation(const QString& df, int dl);
39 virtual QString resolve(const QStringList* argList);
40 virtual Macro* getMacro(const QString& name) const;
42 virtual void errorMessage(const QString& msg);
46 * A pointer to the ProjectFile class that stores all read-in
52 * In case of a returned token, we also have to save the current line
53 * buffer and the current line number, in case an error has occured before
54 * the pushed back token.