Ingen
0.5.1
|
Abstract interface common to both engine and clients. More...
#include <Interface.hpp>
Public Member Functions | |
virtual Raul::URI | uri () const =0 |
virtual SPtr< Interface > | respondee () 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 |
Abstract interface common to both engine and clients.
Purely virtual (except for the destructor).
|
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().
|
pure virtual |
End a transaction.
Implemented in Ingen::Server::Broadcaster, Ingen::Client::SigClientInterface, Ingen::Client::ThreadedSigClientInterface, Ingen::Tee, Ingen::Server::EventWriter, Ingen::AtomWriter, and Ingen::SocketWriter.
Referenced by Ingen::Server::Broadcaster::unregister_client().
|
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.