diff options
author | David Robillard <d@drobilla.net> | 2019-03-09 17:44:36 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-12 19:42:09 +0100 |
commit | 3c0ed6b66b6e99c68fc01c86b5796a55d74a5977 (patch) | |
tree | 7be3252c13ef123b956424169c1bfbf55359564a /ingen/TurtleWriter.hpp | |
parent | e32f32a360f2bf8f017ea347b6d1e568c0beaf68 (diff) | |
download | ingen-serd1.tar.gz ingen-serd1.tar.bz2 ingen-serd1.zip |
WIP: Port to serd1serd1
Diffstat (limited to 'ingen/TurtleWriter.hpp')
-rw-r--r-- | ingen/TurtleWriter.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ingen/TurtleWriter.hpp b/ingen/TurtleWriter.hpp index 9c88be2e..09c01d26 100644 --- a/ingen/TurtleWriter.hpp +++ b/ingen/TurtleWriter.hpp @@ -23,7 +23,7 @@ #include "ingen/ingen.h" #include "lv2/atom/atom.h" #include "serd/serd.h" -#include "sratom/sratom.h" +#include "sratom/sratom.hpp" #include <cstddef> #include <cstdint> @@ -41,7 +41,7 @@ class URIs; class INGEN_API TurtleWriter : public AtomWriter, public AtomSink { public: - TurtleWriter(URIMap& map, URIs& uris, URI uri); + TurtleWriter(serd::World& world, URIMap& map, URIs& uris, const URI& uri); ~TurtleWriter() override; @@ -54,14 +54,13 @@ public: URI uri() const override { return _uri; } protected: - URIMap& _map; - Sratom* _sratom; - SerdNode _base; - SerdURI _base_uri; - SerdEnv* _env; - SerdWriter* _writer; - URI _uri; - bool _wrote_prefixes; + URIMap& _map; + sratom::Streamer _streamer; + serd::Node _base; + serd::Env _env; + serd::Writer _writer; + URI _uri; + bool _wrote_prefixes; }; } // namespace ingen |