Ingen  0.5.1
Public Member Functions | List of all members
Ingen::Interface Class Referenceabstract

Abstract interface common to both engine and clients. More...

#include <Interface.hpp>

+ Inheritance diagram for Ingen::Interface:

Public Member Functions

virtual Raul::URI uri () const =0
virtual SPtr< Interfacerespondee () const
virtual void set_respondee (SPtr< Interface > respondee)
virtual void bundle_begin ()=0
 Begin a transaction. More...
virtual void bundle_end ()=0
 End a transaction. More...
virtual void put (const Raul::URI &uri, const Resource::Properties &properties, Resource::Graph ctx=Resource::Graph::DEFAULT)=0
virtual void delta (const Raul::URI &uri, const Resource::Properties &remove, const Resource::Properties &add)=0
virtual void copy (const Raul::URI &old_uri, const Raul::URI &new_uri)=0
virtual void move (const Raul::Path &old_path, const Raul::Path &new_path)=0
virtual void del (const Raul::URI &uri)=0
virtual void connect (const Raul::Path &tail, const Raul::Path &head)=0
virtual void disconnect (const Raul::Path &tail, const Raul::Path &head)=0
virtual void disconnect_all (const Raul::Path &graph, const Raul::Path &path)=0
virtual void set_property (const Raul::URI &subject, const Raul::URI &predicate, const Atom &value)=0
virtual void undo ()=0
virtual void redo ()=0
virtual void set_response_id (int32_t id)=0
 Set the ID to use to respond to the next message. More...
virtual void get (const Raul::URI &uri)=0
virtual void response (int32_t id, Status status, const std::string &subject)=0
virtual void error (const std::string &msg)=0

Detailed Description

Abstract interface common to both engine and clients.

Purely virtual (except for the destructor).

Member Function Documentation

§ bundle_begin()

virtual void Ingen::Interface::bundle_begin ( )
pure virtual

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.

Implemented in Ingen::Server::Broadcaster, Ingen::Client::SigClientInterface, Ingen::Client::ThreadedSigClientInterface, Ingen::Tee, Ingen::Server::EventWriter, and Ingen::AtomWriter.

Referenced by Ingen::Server::Broadcaster::unregister_client().

§ bundle_end()

virtual void Ingen::Interface::bundle_end ( )
pure virtual

§ set_response_id()

virtual void Ingen::Interface::set_response_id ( int32_t  id)
pure virtual

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

Setting the ID to 0 will disable responses.

Implemented in Ingen::Server::Broadcaster, Ingen::Client::SigClientInterface, Ingen::Tee, Ingen::Client::ClientStore, Ingen::AtomWriter, and Ingen::Server::EventWriter.

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