2016-09-19 01:18:11 +00:00
|
|
|
//
|
|
|
|
// Disk.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 18/09/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-09-19 01:18:11 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2016-09-19 01:18:11 +00:00
|
|
|
|
|
|
|
#include "File.hpp"
|
2018-01-25 02:48:44 +00:00
|
|
|
#include "../../../Storage/Disk/Disk.hpp"
|
2016-09-19 01:18:11 +00:00
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::Acorn {
|
2016-09-19 01:18:11 +00:00
|
|
|
|
2018-05-13 19:34:31 +00:00
|
|
|
/// Describes a DFS- or ADFS-format catalogue(/directory): the list of files available and the catalogue's boot option.
|
2016-09-19 11:35:02 +00:00
|
|
|
struct Catalogue {
|
|
|
|
std::string name;
|
2018-01-24 03:18:16 +00:00
|
|
|
std::vector<File> files;
|
2016-09-19 11:35:02 +00:00
|
|
|
enum class BootOption {
|
|
|
|
None,
|
|
|
|
LoadBOOT,
|
|
|
|
RunBOOT,
|
|
|
|
ExecBOOT
|
|
|
|
} bootOption;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<Catalogue> GetDFSCatalogue(const std::shared_ptr<Storage::Disk::Disk> &disk);
|
|
|
|
std::unique_ptr<Catalogue> GetADFSCatalogue(const std::shared_ptr<Storage::Disk::Disk> &disk);
|
2016-09-19 01:18:11 +00:00
|
|
|
|
|
|
|
}
|