Ingen  0.5.1
Public Member Functions | Protected Attributes | List of all members
Ingen::StreamWriter Class Reference

An Interface that writes Turtle messages to a stream. More...

#include <StreamWriter.hpp>

+ Inheritance diagram for Ingen::StreamWriter:
+ Collaboration diagram for Ingen::StreamWriter:

Public Member Functions

 StreamWriter (URIMap &map, URIs &uris, const Raul::URI &uri, FILE *stream, ColorContext::Color color)
size_t text_sink (const void *buf, size_t len)
 Pure virtual text sink which receives calls serialized to Turtle. More...
- Public Member Functions inherited from Ingen::TurtleWriter
 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...
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

FILE * _stream
ColorContext::Color _color
- Protected Attributes inherited from Ingen::TurtleWriter
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 stream.

Member Function Documentation

§ text_sink()

size_t Ingen::StreamWriter::text_sink ( const void *  buf,
size_t  len 

Pure virtual text sink which receives calls serialized to Turtle.

Implements Ingen::TurtleWriter.

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