RoseFrontendTask Class Reference

Task for calling the ROSE frontend. More...

#include <RoseFrontendTask.h>

Inheritance diagram for RoseFrontendTask:

Inheritance graph
[legend]
List of all members.

Public Types

 BEFORE_START
 RUNNING
 FINISHED_SUCCESS
 FINISHED_ERROR
enum  State { BEFORE_START, RUNNING, FINISHED_SUCCESS, FINISHED_ERROR }

Signals

void finished ()

Public Member Functions

 RoseFrontendTask (SgProject *proj, const QString &file)
virtual TaskOutputInfogetOutputInfo ()
virtual void start ()
 Starts the task (normally done by TaskList).
virtual State getState () const
 Returns the state this task is in.
virtual QString getDescription () const
SgFile * getResult () const

Protected Attributes

SgFile * sgFile
SgProject * sgProject
QString file
RoseFrontendOutput out
State state

Detailed Description

Task for calling the ROSE frontend.

Currently the ROSE frontend is called in the same process. This has certain disadvantages:

Better solution:

Definition at line 53 of file RoseFrontendTask.h.


Member Enumeration Documentation

enum Task::State [inherited]

Enumerator:
BEFORE_START 
RUNNING 
FINISHED_SUCCESS 
FINISHED_ERROR 

Definition at line 25 of file TaskInterface.h.


Constructor & Destructor Documentation

RoseFrontendTask::RoseFrontendTask ( SgProject *  proj,
const QString &  file 
)

Definition at line 84 of file RoseFrontendTask.cpp.


Member Function Documentation

void Task::finished (  )  [signal, inherited]

Emitted when task has finished, call getState() to get status (success /error)

Referenced by start().

QString RoseFrontendTask::getDescription (  )  const [virtual]

Implements Task.

Definition at line 159 of file RoseFrontendTask.cpp.

virtual TaskOutputInfo* RoseFrontendTask::getOutputInfo (  )  [inline, virtual]

Currently no output information TODO find elegant way to redirect STDOUT

Implements Task.

Definition at line 61 of file RoseFrontendTask.h.

SgFile* RoseFrontendTask::getResult (  )  const [inline]

Definition at line 70 of file RoseFrontendTask.h.

Referenced by SourceFileNode::buildTaskFinished(), and BinaryFileNode::frontendTaskFinished().

virtual State RoseFrontendTask::getState (  )  const [inline, virtual]

Returns the state this task is in.

Implements Task.

Definition at line 66 of file RoseFrontendTask.h.

Referenced by SourceFileNode::buildTaskFinished(), and BinaryFileNode::frontendTaskFinished().

void RoseFrontendTask::start (  )  [virtual]

Starts the task (normally done by TaskList).

Implements Task.

Definition at line 89 of file RoseFrontendTask.cpp.

Here is the call graph for this function:


Member Data Documentation

QString RoseFrontendTask::file [protected]

Definition at line 75 of file RoseFrontendTask.h.

Referenced by getDescription(), and start().

RoseFrontendOutput RoseFrontendTask::out [protected]

Definition at line 76 of file RoseFrontendTask.h.

Referenced by getOutputInfo(), and start().

SgFile* RoseFrontendTask::sgFile [protected]

Definition at line 73 of file RoseFrontendTask.h.

Referenced by getResult(), and start().

SgProject* RoseFrontendTask::sgProject [protected]

Definition at line 74 of file RoseFrontendTask.h.

Referenced by start().

State RoseFrontendTask::state [protected]

Definition at line 78 of file RoseFrontendTask.h.

Referenced by getState(), and start().


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