Ingen  0.5.1
Public Types | Public Member Functions | List of all members
Ingen::Tee Class Reference

Interface that forwards all calls to several sinks. More...

#include <Tee.hpp>

+ Inheritance diagram for Ingen::Tee:
+ Collaboration diagram for Ingen::Tee:

Public Types

typedef std::set< SPtr< Interface > > Sinks

Public Member Functions

 Tee (const Sinks &sinks={})
void add_sink (SPtr< Interface > sink)
bool remove_sink (SPtr< Interface > sink)
virtual SPtr< Interfacerespondee () const
virtual void set_respondee (SPtr< Interface > respondee)
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)
Raul::URI uri () const
const Sinks & sinks () const
Sinks & sinks ()

Detailed Description

Interface that forwards all calls to several sinks.

Member Function Documentation

§ bundle_begin()

void Ingen::Tee::bundle_begin ( )

Begin a transaction.

This does not guarantee strict atomicity, but the events in a bundle will be considered one operation, and they will all be undone at once.

Implements Ingen::Interface.

§ bundle_end()

void Ingen::Tee::bundle_end ( )

End a transaction.

Implements Ingen::Interface.

§ set_response_id()

void Ingen::Tee::set_response_id ( int32_t  id)

Set the ID to use to respond to the next message.

Setting the ID to 0 will disable responses.

Implements Ingen::Interface.

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