Ingen
0.5.1
|
An Interface that writes Turtle messages to a sink method. More...
#include <TurtleWriter.hpp>
Public Member Functions | |
TurtleWriter (URIMap &map, URIs &uris, const Raul::URI &uri) | |
bool | write (const LV2_Atom *msg, int32_t default_id=0) |
AtomSink method which receives calls serialized to LV2 atoms. More... | |
virtual size_t | text_sink (const void *buf, size_t len)=0 |
Pure virtual text sink which receives calls serialized to Turtle. More... | |
Raul::URI | uri () const |
![]() | |
AtomWriter (URIMap &map, URIs &uris, AtomSink &sink) | |
void | bundle_begin () |
Begin a transaction. More... | |
void | bundle_end () |
End a transaction. More... | |
void | put (const Raul::URI &uri, const Resource::Properties &properties, Resource::Graph ctx=Resource::Graph::DEFAULT) |
void | delta (const Raul::URI &uri, const Resource::Properties &remove, const Resource::Properties &add) |
void | copy (const Raul::URI &old_uri, const Raul::URI &new_uri) |
void | move (const Raul::Path &old_path, const Raul::Path &new_path) |
void | del (const Raul::URI &uri) |
void | connect (const Raul::Path &tail, const Raul::Path &head) |
void | disconnect (const Raul::Path &tail, const Raul::Path &head) |
void | disconnect_all (const Raul::Path &graph, const Raul::Path &path) |
void | set_property (const Raul::URI &subject, const Raul::URI &predicate, const Atom &value) |
void | undo () |
void | redo () |
void | set_response_id (int32_t id) |
Set the ID to use to respond to the next message. More... | |
void | get (const Raul::URI &uri) |
void | response (int32_t id, Status status, const std::string &subject) |
void | error (const std::string &msg) |
![]() | |
virtual SPtr< Interface > | respondee () const |
virtual void | set_respondee (SPtr< Interface > respondee) |
Protected Attributes | |
URIMap & | _map |
Sratom * | _sratom |
SerdNode | _base |
SerdURI | _base_uri |
SerdEnv * | _env |
SerdWriter * | _writer |
Raul::URI | _uri |
bool | _wrote_prefixes |
An Interface that writes Turtle messages to a sink method.
Derived classes must implement text_sink() to do something with the serialized messages.
|
virtual |
AtomSink method which receives calls serialized to LV2 atoms.
Implements Ingen::AtomSink.
|
pure virtual |
Pure virtual text sink which receives calls serialized to Turtle.
Implemented in Ingen::StreamWriter, and Ingen::SocketWriter.