Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4f010bee76
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (16 sloc) 0.443 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef EVENTBUS_H
#define EVENTBUS_H

#include <vector>
#include "Events/Event.h"

namespace analyzer {
class Analyzer;
}

class EventBus {
public:
static void registerEvent(int event_id, analyzer::Analyzer* const analyzer);
static void unregisterEvent(int event_id, analyzer::Analyzer* const analyzer);
static void broadcast(event::Event* const event);

private:
static std::vector<std::vector<analyzer::Analyzer*> > _events;
};
#endif
Something went wrong with that request. Please try again.