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

« back to all changes in this revision

Viewing changes to projectmanagers/cmake/parser/cmakecachereader.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
/* KDevelop CMake Support
 
2
 *
 
3
 * Copyright 2008 Aleix Pol <aleixpol@gmail.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
 * 02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef CMAKECACHEREADER_H
 
22
#define CMAKECACHEREADER_H
 
23
 
 
24
#include <QString>
 
25
 
 
26
#include "cmakeexport.h"
 
27
 
 
28
class KDEVCMAKECOMMON_EXPORT CacheLine
 
29
{
 
30
public:
 
31
    CacheLine() : endName(-1), dash(-1), colon(-1), equal(-1) {}
 
32
 
 
33
    void readLine(const QString& line);
 
34
    bool isCorrect() const { return endName>=0 && equal>=0; }
 
35
 
 
36
    QString name() const;
 
37
    QString flag() const;
 
38
    QString type() const;
 
39
    QString value() const;
 
40
 
 
41
private:
 
42
    QString m_line;
 
43
 
 
44
    int endName;
 
45
    int dash;
 
46
    int colon;
 
47
    int equal;
 
48
};
 
49
 
 
50
#endif