35 [[nodiscard]]
bool can_write(
const std::string& filepath)
const override;
38 bool open(
const std::string& filepath,
49 bool flush()
override;
52 bool close()
override;
Typed writer contract for schema-bearing Composite files.
bool is_open() const override
Whether a document is being assembled.
std::vector< bool > m_content_started
std::string get_last_error() const override
Last structure or output error.
bool close() override
Save and release the document, or return false after failure.
std::unique_ptr< Impl > m_xml
bool can_write(const std::string &filepath) const override
Accept paths with the .xml extension.
bool write_rows(const Kakshya::CompositeSlice &rows) override
Append preorder rows whose parent indices are global.
bool open(const std::string &filepath, const Kakshya::CompositeLayout &layout) override
Start a document using xml_composite_layout().
std::vector< uint64_t > m_ancestors
std::vector< std::string > get_supported_extensions() const override
Supported extension without a dot.
bool flush() override
Save the current document, which must contain one root.
Shared field description and byte layout for a CompositeArray.
Borrowed consecutive elements, optionally selected by a Region.
Read view of one value in a CompositeArray.