连接器客户端
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "json.hpp"
|
||||
#include "zip.hpp"
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace connector {
|
||||
|
||||
std::string safe_project_name(const std::string& value);
|
||||
std::string normalize_spine_version(const std::string& value);
|
||||
|
||||
class ConversionWorkspace {
|
||||
public:
|
||||
explicit ConversionWorkspace(const Json& payload);
|
||||
~ConversionWorkspace();
|
||||
ConversionWorkspace(const ConversionWorkspace&) = delete;
|
||||
ConversionWorkspace& operator=(const ConversionWorkspace&) = delete;
|
||||
|
||||
std::filesystem::path root;
|
||||
std::filesystem::path input_path;
|
||||
std::filesystem::path output_path;
|
||||
std::string project_name;
|
||||
std::string spine_version;
|
||||
std::vector<ArchiveFile> archive_images;
|
||||
|
||||
std::vector<std::uint8_t> read_output() const;
|
||||
};
|
||||
|
||||
} // namespace connector
|
||||
Reference in New Issue
Block a user