File: message.h

package info (click to toggle)
littlewizard 1.2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,436 kB
  • sloc: sh: 9,389; cpp: 7,685; xml: 420; makefile: 380; awk: 40; ansic: 38
file content (59 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* (C) Marcin Kwadrans <quarter@users.sourceforge.net> */

/*! \file message.h 
	\brief Plik zawiera deklarację klasy komunikatów
*/

#ifndef __LW_MESSAGE_H
#define __LW_MESSAGE_H

#include "piece.h"

enum LWMsg {
	LW_INFO_ProgramInterrupted=0,
	LW_ERROR_WrongNumberOfArguments,
	LW_ERROR_LValueIsNotVariable,
	LW_ERROR_UnmatchedBrace,
	LW_ERROR_EmptyBrace,
	LW_ERROR_BadString,
	LW_ERROR_DivisionByZero,
	LW_ERROR_BadIndexOfArray,
	LW_ERROR_ForButWhereIsToOrDownto,
	LW_ERROR_ToButWhereIsFor,
	LW_ERROR_DowntoButWhereIsFor,
	LW_ERROR_RepeatButWhereIsUntil,
	LW_ERROR_UntilButWhereIsRepeat,
	LW_ERROR_NeedVariableAsArgument,
	LW_ERROR_IsNotArray,
	LW_ERROR_IndexOutOfRange,
	LW_ERROR_BreakNotInALoop,
	LW_ERROR_ContinueNotInALoop,
	LW_ERROR_ElseButWhereIsIf,
	LW_ERROR_StepButWhereIsFor,
	LW_ERROR_PleaseSpecifyStep,
	LW_ERROR_NumberOutOfRange,
	LW_ERROR_DontUseSpecial,
	LW_ERROR_BeginProgramWithCommand
};

class LWProgram;

/*! \class LWMessage
	\brief Klasa komunikatu

	Obiekty tej klasy są rzucane jako wyjątki podczas analizy i interpretacji kodu
*/

class LWMessage {
private:
LWMsg message;
LWPiece *piece;
LWProgram *program;
public:
LWMessage (LWMsg a_message);
void setPiece (LWPiece *a_piece);
void show ();
guint getId (); 	
};

#endif