Language Class Reference

#include <language.h>

Inheritance diagram for Language:

Inheritance graph
[legend]
Collaboration diagram for Language:

Collaboration graph
[legend]
List of all members.

Signals

void processSucceeded (Language *language)
void processFailed (Language *language)

Public Member Functions

 Language (ProcessChain *processChain, KTechlab *parent, const QString &name)
 ~Language ()
virtual void processInput (ProcessOptions options)=0
ProcessOptions processOptions () const
virtual ProcessOptions::ProcessPath::Path outputPath (ProcessOptions::ProcessPath::Path inputPath) const=0

Protected Member Functions

virtual MessageInfo extractMessageInfo (const QString &text)
void reset ()
void outputMessage (const QString &message)
void outputWarning (const QString &message)
void outputError (const QString &error)
void finish (bool successful)

Protected Attributes

int m_errorCount
KTechlabp_ktechlab
ProcessOptions m_processOptions
ProcessChainp_processChain
QString m_successfulMessage
QString m_failedMessage

Detailed Description

Author:
Daniel Clarke

David Saxton

Definition at line 203 of file language.h.


Member Function Documentation

virtual void Language::processInput ( ProcessOptions  options  )  [pure virtual]

Compile / assemble / dissassembly / whatever the given input.

Returns:
true if processing was started succesfully (this is different to finishing successfuly).

Implemented in FlowCode, Gpasm, Gpdasm, Gplib, Gplink, Microbe, PicProgrammer, and SDCC.

ProcessOptions Language::processOptions (  )  const [inline]

Return the ProcessOptions object current state

Definition at line 218 of file language.h.

References m_processOptions.

Referenced by ProcessChain::slotFinishedCompile().

virtual ProcessOptions::ProcessPath::Path Language::outputPath ( ProcessOptions::ProcessPath::Path  inputPath  )  const [pure virtual]

Return the output path from the given input path. Will return None if we've done processing.

Implemented in FlowCode, Gpasm, Gpdasm, Gplib, Gplink, Microbe, PicProgrammer, and SDCC.

Referenced by finish().

void Language::processSucceeded ( Language language  )  [signal]

Emitted when the processing was successful.

Parameters:
language Pointer to this class

Referenced by finish(), and FlowCode::processInput().

void Language::processFailed ( Language language  )  [signal]

Emitted when the processing failed.

Parameters:
language Pointer to this class

Referenced by finish(), and FlowCode::processInput().

MessageInfo Language::extractMessageInfo ( const QString &  text  )  [protected, virtual]

Examines the string for the line number if applicable, and creates a new MessageInfo for it.

Reimplemented in Gpdasm, Gplib, and Gplink.

Definition at line 99 of file language.cpp.

Referenced by outputError(), outputMessage(), and outputWarning().

void Language::reset (  )  [protected]

Reset the error count

Definition at line 93 of file language.cpp.

References m_errorCount.

Referenced by ExternalLanguage::resetLanguageProcess().


Member Data Documentation

QString Language::m_successfulMessage [protected]

A message appropriate to the language's success after compilation or similar.

Definition at line 261 of file language.h.

Referenced by finish(), FlowCode::FlowCode(), Gpasm::Gpasm(), Gpdasm::Gpdasm(), Gplib::Gplib(), Gplink::Gplink(), Microbe::Microbe(), PicProgrammer::PicProgrammer(), and SDCC::SDCC().

QString Language::m_failedMessage [protected]

A message appropriate to the language's failure after compilation or similar.

Definition at line 265 of file language.h.

Referenced by finish(), FlowCode::FlowCode(), Gpasm::Gpasm(), Gpdasm::Gpdasm(), Gplib::Gplib(), Gplink::Gplink(), Microbe::Microbe(), PicProgrammer::PicProgrammer(), and SDCC::SDCC().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:47 2007 for KTechLab by  doxygen 1.5.1