Handler.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <swarmio/Node.h>
4 #include <swarmio/data/event/Notification.pb.h>
5 #include <swarmio/data/discovery/Schema.pb.h>
6 
8 {
13  class SWARMIO_API Handler
14  {
15  public:
16 
25  virtual void EventWasTriggered(const Node* node, const data::event::Notification& event) = 0;
26 
35  virtual data::discovery::Schema DescribeEvent(const std::string& name) = 0;
36  };
37 }
Abstract base class for Event handlers.
Definition: Handler.h:13
Represents a Node the Endpoint knows about and can send messages to.


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48