Program Listing for File SerializationState.hpp

Return to documentation for file (src/rdf4cpp/writer/SerializationState.hpp)

#ifndef RDF4CPP_SERIALIZATIONSTATE_HPP
#define RDF4CPP_SERIALIZATIONSTATE_HPP

#include <rdf4cpp/Node.hpp>

namespace rdf4cpp::writer {

struct SerializationState {
    Node active_graph;
    Node active_subject;
    Node active_predicate;

    static bool begin(BufWriterParts writer) noexcept;
    bool flush(BufWriterParts writer) noexcept;
};

}  // namespace rdf4cpp::writer

#endif  //RDF4CPP_SERIALIZATIONSTATE_HPP