mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
28 lines
624 B
C++
28 lines
624 B
C++
#include "stdafx.h"
|
|
#include "FuseTestEvents.h"
|
|
|
|
bool Fuse::TestEvents::operator==(const TestEvents& rhs) const {
|
|
auto unequal = events.size() != rhs.events.size();
|
|
for (int i = 0; !unequal && (i < events.size()); ++i) {
|
|
const auto equal = events[i] == rhs.events[i];
|
|
unequal = !equal;
|
|
}
|
|
return !unequal;
|
|
}
|
|
|
|
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::dump() const {
|
|
for (const auto& event : events)
|
|
event.dump();
|
|
}
|