base event class.
More...
#include <event.hh>
|
|
typedef std::function< std::unique_ptr< Event >nlohmann::json data, const std::string &)> | event_builder_t |
| |
|
|
| Event (nlohmann::json d, const std::string &_room_id="") throw (Error::Error) |
| |
|
const std::string & | getType () const throw () |
| |
|
const nlohmann::json & | getContent () const throw () |
| |
|
const nlohmann::json & | getRawData () const throw () |
| |
|
const std::string & | getRoomID () const throw () |
| |
|
|
static std::unique_ptr< Event > | newEvent (nlohmann::json data, const std::string &="") throw (Error::Error) |
| |
|
static void | registerEventClass (const std::string &type, event_builder_t) |
| |
|
template<typename T > |
| static std::unique_ptr< Event > | _new_helper (nlohmann::json data, const std::string &room_id) |
| |
|
|
static const std::string | TYPE = "*" |
| |
|
|
const std::string & | get_room_name (const nlohmann::json &data, const std::string &room_id) |
| |
|
|
nlohmann::json | data |
| |
|
std::string | room_id |
| |
The documentation for this class was generated from the following files:
- liboperator/event.hh
- liboperator/event.cc