4 #ifndef FIRE_GEAR_EVENT_EVENT_HPP_INCLUDED
5 #define FIRE_GEAR_EVENT_EVENT_HPP_INCLUDED
7 #include <boost/signals2/signal.hpp>
8 #include <boost/signals2/connection.hpp>
14 #include "fire/export.hpp"
16 #include "fire/Object.hpp"
51 typedef boost::signals2::signal< void (const fire::gear::event::Event&, const std::set< fire::gear::event::Listener* >&) > Signal;
73 std::set< fire::gear::event::Listener* > listeners;
78 std::auto_ptr<fire::gear::event::Event::Signal> signal;
83 boost::signals2::connection connection;
96 Event(
void* source,
const std::string& name);
128 void* getSource()
const;
136 std::string getName()
const;
144 bool isConnected()
const;
165 void removeAllListeners();
Classe per la gestione di un evento.
Definition: Event.hpp:45
Classe per la gestione di un oggetto.
Definition: Object.hpp:29
Classe per la gestione di un ascoltatore.
Definition: Listener.hpp:36