Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit1ba06048bfd4f007fec254bc964f2983c1793169 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 08:08:50 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 08:08:50 +0300
Files994af2b5bf29e772e62f3c5fd69119bb6f2bbd87 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-1ba06048bfd4f007fec254bc964f2983c1793169.tar
FMI-OOP-P2_Tables-1ba06048bfd4f007fec254bc964f2983c1793169.tar.gz
FMI-OOP-P2_Tables-1ba06048bfd4f007fec254bc964f2983c1793169.zip
Parentb2abeda801b8f8f092bc138b7aba8ec208194e7e (diff)
Autocommit at 29.05.2022 @ 08:08
1 files changed, 9 insertions, 5 deletions
-rw-r--r--src/Models/CellFormula.cpp14
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 1a340e5..cf1c2cd 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -2,11 +2,6 @@
#include "CellDouble.h"
#include <cstring>
-CellFormula::CellFormula(const char* str, const List<List<Cell*>>* tableCells) : localCells(), formula(), rawFormula() {
- this->tableCells = tableCells;
- parseAndSetValue(str);
-}
-
double pow(double x, unsigned y) {
double res = x;
for (unsigned i = 1; i < y; i++)
@@ -38,6 +33,15 @@ double CellFormula::calculate(unsigned index) {
}
}
+CellFormula::CellFormula(const char* str, const List<List<Cell*>>* tableCells) : localCells(), formula(), rawFormula() {
+ this->tableCells = tableCells;
+ parseAndSetValue(str);
+}
+
+double CellFormula::getNumeralValue() {
+ return 0;
+}
+
String CellFormula::getValueForPrint() {
return String() += calculate();
}