Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Microbe Class Reference

#include <microbe.h>

Inheritance diagram for Microbe:

ExternalLanguage Language

List of all members.


Detailed Description

Author:
Daniel Clarke

David Saxton

Definition at line 94 of file microbe.h.


Public Types

enum  MistakeType {
  UnknownStatement = 1, InvalidPort = 2, UnassignedPin = 3, NonHighLowPinState = 4,
  UnassignedPort = 5, UnexpectedStatementBeforeBracket = 6, MismatchedBrackets = 7, InvalidEquals = 8,
  ReservedKeyword = 9, ConsecutiveOperators = 10, MissingOperator = 11, UnknownVariable = 12,
  UnopenableInclude = 16, DivisionByZero = 17, NumberTooBig = 18, NonConstantStep = 19,
  NonConstantDelay = 20, HighLowExpected = 21, InvalidComparison = 22, SubBeforeEnd = 23,
  LabelExpected = 24, TooManyTokens = 25, FixedStringExpected = 26, PinListExpected = 27,
  AliasRedefined = 28, InvalidInterrupt = 29, InterruptRedefined = 30, InterruptBeforeEnd = 31,
  ReadOnlyVariable = 32, WriteOnlyVariable = 33, InvalidPinMapSize = 34, VariableRedefined = 35,
  InvalidVariableName = 36, VariableExpected = 40, NameExpected = 41
}

Signals

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

Public Member Functions

void addAlias (const QString &name, const QString &dest)
void addDelayRoutineWanted (unsigned routine)
void addVariable (const Variable &variable)
QString alias (const QString &alias) const
QString compile (const QString &url, bool showSource, bool optimize)
void compileError (MistakeType type, const QString &context, const SourceLine &sourceLine)
void decDest ()
QString dest () const
QString errorReport () const
void incDest ()
bool isInterruptUsed (const QString &interruptName)
bool isVariableKnown (const QString &variableName) const
PIC14makePic ()
 Microbe (ProcessChain *processChain, KTechlab *parent)
virtual
ProcessOptions::ProcessPath::Path 
outputPath (ProcessOptions::ProcessPath::Path inputPath) const
virtual void processInput (ProcessOptions options)
ProcessOptions processOptions () const
void resetDest ()
void setInterruptUsed (const QString &interruptName)
QString uniqueLabel ()
Variable variable (const QString &variableName) const

Static Public Member Functions

static bool isValidVariableName (const QString &variableName)

Protected Slots

void processExited (KProcess *)
void receivedStderr (KProcess *, char *buffer, int buflen)
void receivedStdout (KProcess *, char *buffer, int buflen)

Protected Member Functions

void deleteLanguageProcess ()
void displayProcessCommand ()
virtual MessageInfo extractMessageInfo (const QString &text)
void finish (bool successful)
virtual bool isError (const QString &message) const
virtual bool isStderrOutputFatal (const QString &message) const
virtual bool isWarning (const QString &message) const
void outputError (const QString &error)
void outputMessage (const QString &message)
virtual void outputtedError (const QString &)
virtual void outputtedMessage (const QString &)
virtual void outputtedWarning (const QString &)
void outputWarning (const QString &message)
virtual bool processExited (bool successfully)
void processInitFailed ()
void reset ()
void resetLanguageProcess ()
void simplifyProgram ()
bool start ()

Protected Attributes

QMap< QString, QString > m_aliasList
int m_dest
int m_errorCount
ErrorMap m_errorMessages
QString m_errorReport
QString m_failedMessage
KProcess * m_languageProcess
unsigned m_maxDelaySubroutine
int m_picType
ProcessOptions m_processOptions
SourceLineList m_program
QString m_successfulMessage
int m_uniqueLabel
QStringList m_usedInterrupts
VariableList m_variables
KTechlabp_ktechlab
ProcessChainp_processChain

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index