wip rewrite

This commit is contained in:
2021-06-29 20:45:52 +02:00
parent ee1a1563ba
commit d7dc1912ac
12 changed files with 481 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include "BinaryDataFile.h"
#include "sls/logger.h"
BinaryDataFile::BinaryDataFile(int index) : File(index, BINARY) {}
BinaryDataFile::~BinaryDataFile() { CloseFile(); }
void BinaryDataFile::CloseFile() {
if (fd_) {
fclose(fd_);
}
fd_ = nullptr;
}