blob: 4673f9f28f7fb08074e60eb7e2ebf89ee17d8134 (
plain) (
blame)
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
|
#include "CellDouble.h"
#include <cstring>
CellDouble::CellDouble(int val) {
value = val;
}
CellDouble::CellDouble(const String& str) {
value = atof(str.get_cstr());
}
double CellDouble::getValue() {
return value;
}
String CellDouble::getValueForPrint() {
return String() += value;
}
void CellDouble::parseAndSetValue(const char* str) {
value = atof(str);
}
void CellDouble::readFromFile(std::ifstream& file) {
file >> value;
}
void CellDouble::writeToFile(std::ofstream& file) {
file << value;
}
|