39 [[nodiscard]] std::optional<DriveAndPartition>
getDriveAndDisk(std::string_view driveName)
const;
40 void create(
const std::string& filename_,
MSXBootSectorType bootType,
const std::vector<unsigned>& sizes)
const;
45 std::string getWorkingDir(
unsigned p);
46 void setWorkingDir(
unsigned p, std::string_view dir);
49 std::string driveName;
53 std::vector<std::string> workingDir;
55 using Drives = std::vector<DriveSettings>;
59 void execute(std::span<const TclObject> tokens,
TclObject& result)
override;
60 [[nodiscard]] std::string help(std::span<const TclObject> tokens)
const override;
61 void tabCompletion(std::vector<std::string>& tokens)
const override;
63 [[nodiscard]] std::string getMachinePrefix()
const;
64 [[nodiscard]] Drives::iterator findDriveSettings(
DiskContainer& drive);
65 [[nodiscard]] Drives::iterator findDriveSettings(std::string_view driveName);
66 [[nodiscard]] DriveSettings& getDriveSettings(std::string_view diskName);
68 const DriveSettings& driveData);
70 DriveSettings& driveData)
const;
72 void create(std::span<const TclObject> tokens)
const;
73 void partition(std::span<const TclObject> tokens);
74 void savedsk(
const DriveSettings& driveData, std::string filename)
const;
75 void format(std::span<const TclObject> tokens);
76 std::string chdir(DriveSettings& driveData, std::string_view filename)
const;
77 void mkdir(DriveSettings& driveData, std::string_view filename)
const;
78 [[nodiscard]] std::string dir(DriveSettings& driveData)
const;
79 [[nodiscard]] std::string deleteEntry(DriveSettings& driveData, std::string_view entry)
const;
80 [[nodiscard]] std::string rename(DriveSettings& driveData, std::string_view oldName, std::string_view newName)
const;
81 std::string imprt(DriveSettings& driveData,
82 std::span<const TclObject> lists,
bool overwrite)
const;
83 void exprt(DriveSettings& driveData, std::string_view dirname,
84 std::span<const TclObject> lists)
const;