blob: 5c972f26dc2b193e5295da90b11173891db214eb (
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
|
#include "CellDouble.h"
#include <cstring>
CellDouble::CellDouble(int val) {
value = val;
}
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;
}
|