Extract typefactory converter from CLI

This commit is contained in:
deeaitch committed 2026-08-28 00:07:16 -04:00
1 parent 2535953b8b
commit 28c9752f18
5 files changed
+338 -314

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#ifndef CONVERTER_H
#define CONVERTER_H
#include <memory>
#include <string>
class Converter {
public:
explicit Converter (std::string input_file_name);
~Converter();
Converter (const Converter &) = delete;
Converter &operator= (const Converter &) = delete;
bool save (const std::string &output_file_name);
[[nodiscard]] int error_code() const noexcept;
protected:
bool parse();
private:
struct Impl;
std::string input_file_name_;
std::unique_ptr<Impl> impl_;
int error_code_ = 0;
};
#endif // CONVERTER_H