2016-09-19 01:18:11 +00:00
|
|
|
//
|
|
|
|
// Disk.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 18/09/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef StaticAnalyser_Acorn_Disk_hpp
|
|
|
|
#define StaticAnalyser_Acorn_Disk_hpp
|
|
|
|
|
|
|
|
#include "File.hpp"
|
2018-01-25 02:48:44 +00:00
|
|
|
#include "../../../Storage/Disk/Disk.hpp"
|
2016-09-19 01:18:11 +00:00
|
|
|
|
2018-01-25 02:48:44 +00:00
|
|
|
namespace Analyser {
|
|
|
|
namespace Static {
|
2016-09-19 01:18:11 +00:00
|
|
|
namespace Acorn {
|
|
|
|
|
2017-07-22 21:39:51 +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
|
|
|
|
2018-01-25 02:48:44 +00:00
|
|
|
}
|
2016-09-19 01:18:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Disk_hpp */
|