GccOutputParser Class Reference

Parses output of the gcc/g++ to get position of errors or warnings. More...

#include <GccTask.h>

Inheritance diagram for GccOutputParser:

Inheritance graph
[legend]
List of all members.

Public Slots

virtual void readData (QIODevice *dev)
 Called if new data are available on IO-device.

Signals

virtual void itemSelected (const QString &file, int line, int column)

Public Member Functions

 GccOutputParser (QObject *par=0)
virtual void showInWidget (QWidget *w, TaskList *l)
virtual void hide (QWidget *w)
 Hides the window, such that another output can be displayed.

Protected Member Functions

QStringList parseLine (const QString &outputLine, ParsedLine &line)
void addLineToWidget (const ParsedLine &line)

Protected Attributes

CompilerOutputWidgetoutWidget

Classes

struct  ParsedLine

Detailed Description

Parses output of the gcc/g++ to get position of errors or warnings.

Definition at line 24 of file GccTask.h.


Constructor & Destructor Documentation

GccOutputParser::GccOutputParser ( QObject *  par = 0  ) 

Definition at line 99 of file GccTask.cpp.


Member Function Documentation

void GccOutputParser::addLineToWidget ( const ParsedLine line  )  [protected]

Definition at line 148 of file GccTask.cpp.

Referenced by readData().

Here is the call graph for this function:

void GccOutputParser::hide ( QWidget *  w  )  [virtual]

Hides the window, such that another output can be displayed.

Implements TaskOutputInfo.

Definition at line 118 of file GccTask.cpp.

virtual void GccOutputParser::itemSelected ( const QString &  file,
int  line,
int  column 
) [virtual, signal]

Implements TaskOutputInfo.

QStringList GccOutputParser::parseLine ( const QString &  outputLine,
ParsedLine line 
) [protected]

Parses a line from g++ output and returns information about the error msg and location function was taken out of edyuk, see http://edyuk.org

Parameters:
outputLine the output from g++
line result of parsing (struct with error msg, line etc), call ParserLine::isValid before use some lines from g++ do not contain errors
Returns:
list of modified files

Definition at line 176 of file GccTask.cpp.

Referenced by readData().

void GccOutputParser::readData ( QIODevice *  dev  )  [virtual, slot]

Called if new data are available on IO-device.

Implements TaskOutputInfo.

Definition at line 130 of file GccTask.cpp.

Referenced by GccCompileTask::dataAvailable().

void GccOutputParser::showInWidget ( QWidget *  w,
TaskList l 
) [virtual]

Shows a table with errors/warnings by using this widget as parent for a custom ListWidget

Implements TaskOutputInfo.

Definition at line 106 of file GccTask.cpp.


Member Data Documentation

CompilerOutputWidget* GccOutputParser::outWidget [protected]

Definition at line 74 of file GccTask.h.

Referenced by addLineToWidget(), GccOutputParser(), hide(), and showInWidget().


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7