mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
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:
12
lib/flags.h
12
lib/flags.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user