blob: 942b5e00b4debeabdd13e5cf399ce6df63fba8a3 (
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 "CellInt.h"
#include <cstring>
CellInt::CellInt(int value) {
this->value = value;
}
double CellInt::getNumeralValue() const {
return value;
}
String CellInt::getValueForPrint() const {
return String() += value;
}
void CellInt::parseAndSetValue(const char* str) {
value = atoi(str);
}
void CellInt::readFromFile(std::ifstream& file) {
file >> value;
}
void CellInt::writeToFile(std::ofstream& file) {
file << value;
}
|