#include <language.h>
Inheritance diagram for Language:


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 |
| KTechlab * | p_ktechlab |
| ProcessOptions | m_processOptions |
| ProcessChain * | p_processChain |
| QString | m_successfulMessage |
| QString | m_failedMessage |
Definition at line 203 of file language.h.
| virtual void Language::processInput | ( | ProcessOptions | options | ) | [pure virtual] |
| 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] |
| void Language::processSucceeded | ( | Language * | language | ) | [signal] |
Emitted when the processing was successful.
| language | Pointer to this class |
Referenced by finish(), and FlowCode::processInput().
| void Language::processFailed | ( | Language * | language | ) | [signal] |
Emitted when the processing failed.
| 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().
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().
1.5.1