Almetare  1.15
Alle meine Taschenrechner - Eine C++-Bibliothek zur Entwicklung von Taschenrechnern
calc_ti_sci.h
gehe zur Dokumentation dieser Datei
1 //******************************************************************************
2 // Copyright (c) 2002-2004 by Friedemann Seebass, Germany.
3 // Dieses Programm ist freie Software. Siehe GNU GPL Notiz in Datei main.cpp.
4 // This program is free software. See the GNU GPL notice in file main.cpp.
5 // Projekt: Almetare - Alle meine Taschenrechner
6 //******************************************************************************
10 //******************************************************************************
11 // Wann Wer Was
12 // ---------- -------- ---------------------------------------------------------
13 // 23.03.2002 fse erzeugt
14 //******************************************************************************
15 
16 #ifndef CALC_TI_SCI_H
17 #define CALC_TI_SCI_H
18 
19 #ifndef __cplusplus
20 #error calc_ti_sci.h is only for C++!
21 #endif
22 
23 //******************************************************************************
24 
25 #include "calc_sci.h"
26 
27 using namespace std;
28 
29 //******************************************************************************
30 
31 class DisplayTiSci;
32 
33 //******************************************************************************
34 // Klasse ComputerTiSci: Texas Instruments Taschenrechner:
35 //******************************************************************************
36 
39 
40 class ComputerTiSci : public ComputerSci
41 {
43  void addTiSciSymsToSymTab();
44 public:
45  ComputerTiSci();
46  bool mapInv(string& sym);
47  void handleEmptyNumStack(Number& a, SymOperator* soP, Number& b);
48  void handleDisplayAfterBra();
49  void handlePercent();
50  friend ostream& operator<<(ostream& os, ComputerTiSci& c);
51 };
52 
53 //******************************************************************************
54 // Klasse DisplayTiSci:
55 //******************************************************************************
56 
58 
59 class DisplayTiSci : public DisplaySci
60 {
61  ComputerTiSci* mCompP;
62 // int getNumStrLen(string numStr) const;
63  string prefixAngMode(string numStr) const;
64 public:
66  void setModes();
67  void makeSeven(string displayStr = "");
68 };
69 
70 //******************************************************************************
71 // zusaetzliche Symbole in TI-Taschenrechnern:
72 //************************* ************************* **************************
73 
74 //******************************************************************************
75 //************************************** ***************************************
76 //************************* ************************* **************************
77 
78 #endif // !CALC_TI_SCI_H
ostream & operator<<(ostream &os, const Error &e)
Ausgabeoperator, wandelt enum ErrId in Strings.
Definition: calculator.cpp:68
Computer-Klasse aller wissenschaftlichen TI-Taschenrechner.
Definition: calc_ti_sci.h:40
Display fuer wissenschaftliche Taschenrechner.
Definition: calc_sci.h:95
Display-Klasse aller wissenschaflichen TI-Taschenrechner.
Definition: calc_ti_sci.h:59
Die Klasse Number repraesentiert Zahlen.
Definition: number.h:48
Basisklasse fuer die Operatoren.
Definition: symbols.h:103
DisplayTiSci * mDisplayTiP
Zeiger zum zugehoerigen Display.
Definition: calc_ti_sci.h:42
Bruchdarstellung: Fliesskomma, Bruch, gemischter Bruch.
Definition: calc_sci.h:47
Klassen fuer alle wissenschaftlichen Taschenrechner (Modul base).
Basisklasse aller Computer.
Definition: calculator.h:84