Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellInt.cpp
blob: b2e457811418d6480b5c148c46802284aedc2b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "CellInt.h"
#include <cstring>

String CellInt::getValueForPrint() {
	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;
}