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

An Interface that creates and enqueues Events for the Engine to execute. More...

#include <EventWriter.hpp>

+ Inheritance diagram for Ingen::Server::EventWriter:
+ Collaboration diagram for Ingen::Server::EventWriter:

Public Member Functions

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

Protected Attributes

SPtr< Interface_respondee
int32_t _request_id
Event::Mode _event_mode

Detailed Description

An Interface that creates and enqueues Events for the Engine to execute.

Member Function Documentation

§ set_response_id()

void Ingen::Server::EventWriter::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.

§ bundle_begin()

void Ingen::Server::EventWriter::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.

References Ingen::Server::Engine::enqueue_event().

§ bundle_end()

void Ingen::Server::EventWriter::bundle_end ( )

End a transaction.

Implements Ingen::Interface.

References Ingen::Server::Engine::enqueue_event().

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