Public Member Functions | |
Decouple () | |
void | addListener (DecoupleListener listener) |
void | rmListener (DecoupleListener listener) |
void | stop () |
void | trigger () |
void | run () |
de::gsi::bel::utils::Decouple::Decouple | ( | ) | [inline] |
Creates the decoupler and starts its processing thread.
void de::gsi::bel::utils::Decouple::addListener | ( | DecoupleListener | listener | ) | [inline] |
Add to the Decoupler a listener which has to implement the dispatch function.
listener | Listener to add. |
void de::gsi::bel::utils::Decouple::rmListener | ( | DecoupleListener | listener | ) | [inline] |
Remove a listener.
listener | The listener to remove. |
void de::gsi::bel::utils::Decouple::run | ( | ) | [inline] |
The decoupler's working thread. It will call all the listeners' dispatch functions when triggered.
void de::gsi::bel::utils::Decouple::stop | ( | ) | [inline] |
Stop the decoupler processing thread.
void de::gsi::bel::utils::Decouple::trigger | ( | ) | [inline] |
Trigger the decoupler. It will call the dispatcher of all his listeners.