EightBit/LR35902/fusetest_LR35902/FuseTestEvents.cpp

21 lines
395 B
C++
Raw Normal View History

#include "stdafx.h"
#include "FuseTestEvents.h"
void Fuse::TestEvents::read(std::ifstream& file) {
bool complete = false;
do {
TestEvent event;
event.read(file);
complete = !event.valid;
if (!complete)
events.push_back(event);
} while (!complete);
}
void Fuse::TestEvents::write(std::ofstream& file) {
for (auto event : events) {
event.write(file);
file << std::endl;
}
}