1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-18 17:06:15 +00:00
CLK/Storage/Disk/DiskImage/Formats/2MG.hpp
2020-11-23 21:42:18 -05:00

36 lines
735 B
C++

//
// 2MG.hpp
// Clock Signal
//
// Created by Thomas Harte on 23/11/2020.
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef _MG_hpp
#define _MG_hpp
#include "../DiskImage.hpp"
#include "../../../FileHolder.hpp"
namespace Storage {
namespace Disk {
/*!
2MG is slightly special because it's just a container format; there's a brief header and then
the contents are some other file format — either MacintoshIMG or AppleDSK.
Therefore it supplies a factory method and will actually return one of those.
TODO: should I generalise on factory methods? Is this likely to occur again?
*/
class Disk2MG {
public:
static DiskImageHolderBase *open(const std::string &file_name);
};
}
}
#endif /* _MG_hpp */