We can now decode IBM MFM disks all the way to an image, although with no CRC

checking as yet.
This commit is contained in:
David Given
2018-10-20 19:25:20 +02:00
parent b8af95f095
commit 8244f9ec51
12 changed files with 430 additions and 15 deletions

View File

@@ -101,4 +101,16 @@ public:
void set(const std::string value) { _value = std::stoi(value); }
};
class DoubleFlag : public ValueFlag<double>
{
public:
DoubleFlag(const std::vector<std::string>& names, const std::string helptext,
double defaultValue = 1.0):
ValueFlag(names, helptext, defaultValue)
{}
const std::string defaultValue() const { return std::to_string(_defaultValue); }
void set(const std::string value) { _value = std::stod(value); }
};
#endif