mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-19 19:16:34 +00:00
Walk towards writing, without doing it.
This commit is contained in:
@@ -170,6 +170,11 @@ MOOF::MOOF(const std::string &file_name) :
|
||||
}
|
||||
}
|
||||
|
||||
bool MOOF::is_read_only() const {
|
||||
// Writing not-yet implemented.
|
||||
return true; //info_.is_write_protected;
|
||||
}
|
||||
|
||||
HeadPosition MOOF::maximum_head_position() const {
|
||||
return HeadPosition(80);
|
||||
}
|
||||
@@ -217,3 +222,15 @@ std::unique_ptr<Track> MOOF::track(const TrackLocation location) const {
|
||||
bool MOOF::represents(const std::string &name) const {
|
||||
return name == file_.name();
|
||||
}
|
||||
|
||||
void MOOF::set_tracks([[maybe_unused]] const std::map<Track::Address, std::unique_ptr<Track>> &tracks) {
|
||||
// for(const auto &[address, track]: tracks) {
|
||||
// TODO:
|
||||
//
|
||||
// (1) can this be a PCM track, or does it need to be a flux track?
|
||||
// (2) manipulate the many indirections of a MOOF file.
|
||||
//
|
||||
// To consider: would it be better to do MOOFs and WOZs with a higher-level
|
||||
// data structure?
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -19,8 +19,10 @@ public:
|
||||
|
||||
HeadPosition maximum_head_position() const;
|
||||
int head_count() const;
|
||||
void set_tracks(const std::map<Track::Address, std::unique_ptr<Track>> &tracks);
|
||||
std::unique_ptr<Track> track_at_position(Track::Address) const;
|
||||
bool represents(const std::string &) const;
|
||||
bool is_read_only() const;
|
||||
|
||||
private:
|
||||
mutable Storage::FileHolder file_;
|
||||
|
||||
Reference in New Issue
Block a user