/**************************************************************************** ** Copyright (c) 2023, Fougue Ltd. ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #pragma once #include "../base/document_tree_node.h" #include "../base/io_writer.h" #include "../base/io_single_format_factory.h" #include namespace Mayo { namespace IO { // Writer for OFF file format class OffWriter : public Writer { public: bool transfer(Span appItems, TaskProgress* progress) override; bool writeFile(const FilePath& filepath, TaskProgress* progress) override; void applyProperties(const PropertyGroup* group) override; static std::unique_ptr createProperties(PropertyGroup*) { return {}; } private: std::vector m_vecTreeNode; }; // Provides factory to create OffWriter objects class OffFactoryWriter : public SingleFormatFactoryWriter {}; } // namespace IO } // namespace Mayo