mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Split the encoder/decoder configuration away from inputs and outputs. Make the
test pattern creator a flux source.
This commit is contained in:
@@ -8,6 +8,7 @@ extern FlagGroup hardwareFluxSourceFlags;
|
||||
class Fluxmap;
|
||||
class FluxSpec;
|
||||
class Config_InputDisk;
|
||||
class TestPatternInput;
|
||||
|
||||
class FluxSource
|
||||
{
|
||||
@@ -18,6 +19,7 @@ private:
|
||||
static std::unique_ptr<FluxSource> createSqliteFluxSource(const std::string& filename);
|
||||
static std::unique_ptr<FluxSource> createHardwareFluxSource(unsigned drive);
|
||||
static std::unique_ptr<FluxSource> createStreamFluxSource(const std::string& path);
|
||||
static std::unique_ptr<FluxSource> createTestPatternFluxSource(const TestPatternInput& config);
|
||||
|
||||
public:
|
||||
static std::unique_ptr<FluxSource> create(const FluxSpec& spec);
|
||||
@@ -29,9 +31,5 @@ public:
|
||||
virtual bool retryable() { return false; }
|
||||
};
|
||||
|
||||
extern void setHardwareFluxSourceRevolutions(double revolutions);
|
||||
extern void setHardwareFluxSourceSynced(bool synced);
|
||||
extern void setHardwareFluxSourceHardSectorCount(int sectorCount);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user