2017-06-08 23:09:51 +00:00
|
|
|
//
|
|
|
|
// ZX8081.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 08/06/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-06-08 23:09:51 +00:00
|
|
|
//
|
|
|
|
|
2017-06-11 20:41:15 +00:00
|
|
|
#ifndef Storage_Data_ZX8081_hpp
|
|
|
|
#define Storage_Data_ZX8081_hpp
|
2017-06-08 23:09:51 +00:00
|
|
|
|
2017-11-11 02:56:53 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <memory>
|
2017-06-08 23:09:51 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Storage {
|
|
|
|
namespace Data {
|
|
|
|
namespace ZX8081 {
|
|
|
|
|
|
|
|
struct File {
|
|
|
|
std::vector<uint8_t> data;
|
2017-07-17 23:52:54 +00:00
|
|
|
std::wstring name;
|
2017-06-08 23:09:51 +00:00
|
|
|
bool isZX81;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::shared_ptr<File> FileFromData(const std::vector<uint8_t> &data);
|
|
|
|
|
2017-06-13 01:32:36 +00:00
|
|
|
std::wstring StringFromData(const std::vector<uint8_t> &data, bool is_zx81);
|
|
|
|
std::vector<uint8_t> DataFromString(const std::wstring &string, bool is_zx81);
|
|
|
|
|
|
|
|
|
2017-06-08 23:09:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* ZX8081_hpp */
|