2017-08-10 19:34:17 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
#include "FuseTest.h"
|
|
|
|
|
|
|
|
void Fuse::Test::read(std::ifstream& file) {
|
|
|
|
|
|
|
|
finish = false;
|
|
|
|
do {
|
|
|
|
std::getline(file, description);
|
|
|
|
finish = file.eof();
|
2017-08-12 14:47:03 +00:00
|
|
|
if (!description.empty() && (description[0] == ';')) // ignore comments
|
|
|
|
description.clear();
|
2017-08-10 19:34:17 +00:00
|
|
|
} while (description.empty() && !finish);
|
|
|
|
|
|
|
|
if (finish)
|
|
|
|
return;
|
|
|
|
|
|
|
|
registerState.read(file);
|
|
|
|
|
|
|
|
bool complete = false;
|
|
|
|
do {
|
|
|
|
MemoryDatum memoryDatum;
|
|
|
|
memoryDatum.read(file);
|
|
|
|
complete = memoryDatum.finished();
|
|
|
|
if (!complete)
|
|
|
|
memoryData.push_back(memoryDatum);
|
|
|
|
} while (!complete);
|
2017-08-12 13:29:12 +00:00
|
|
|
}
|