Ingen  0.5.1
Public Member Functions | Protected Attributes | List of all members
Ingen::TurtleWriter Class Referenceabstract

An Interface that writes Turtle messages to a sink method. More...

#include <TurtleWriter.hpp>

+ Inheritance diagram for Ingen::TurtleWriter:
+ Collaboration diagram for Ingen::TurtleWriter:

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
 
- Public Member Functions inherited from Ingen::AtomWriter
 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)
 
- Public Member Functions inherited from Ingen::Interface
virtual SPtr< Interfacerespondee () 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
 

Detailed Description

An Interface that writes Turtle messages to a sink method.

Derived classes must implement text_sink() to do something with the serialized messages.

Member Function Documentation

§ write()

bool Ingen::TurtleWriter::write ( const LV2_Atom *  msg,
int32_t  default_id = 0 
)
virtual

AtomSink method which receives calls serialized to LV2 atoms.

Implements Ingen::AtomSink.

§ text_sink()

virtual size_t Ingen::TurtleWriter::text_sink ( const void *  buf,
size_t  len 
)
pure virtual

Pure virtual text sink which receives calls serialized to Turtle.

Implemented in Ingen::StreamWriter, and Ingen::SocketWriter.


The documentation for this class was generated from the following files: