Compare commits
No commits in common. "8f7807077036c7540b4e60bb771859713245ee55" and "9a0efd0b62c9b120ddffe37ceb2e3f4447dbb7db" have entirely different histories.
8f78070770
...
9a0efd0b62
@ -135,16 +135,6 @@
|
||||
*/
|
||||
bool isScheduledByManager() const {return isScheduledByManager_;}
|
||||
|
||||
/**
|
||||
* @brief connect a new participant through another participant
|
||||
*/
|
||||
void connect(std::shared_ptr<EventManager::Participant> participant);
|
||||
|
||||
/**
|
||||
* @brief disconnect a participant through another participant
|
||||
*/
|
||||
void disconnect(std::shared_ptr<EventManager::Participant> participant);
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Constructor setting the participant up for use
|
||||
|
@ -331,8 +331,3 @@
|
||||
participant->setManager(shared_from_this());
|
||||
participant->init();
|
||||
}
|
||||
|
||||
void EventManager::Manager::disconnect(std::shared_ptr<EventManager::Participant> participant)
|
||||
{
|
||||
participant->setManager(nullptr);
|
||||
}
|
||||
|
@ -18,25 +18,6 @@ EventManager::Participant::Participant() : manager_(nullptr),
|
||||
|
||||
}
|
||||
|
||||
void EventManager::Participant::connect(std::shared_ptr<EventManager::Participant> participant)
|
||||
{
|
||||
if (manager_ == nullptr)
|
||||
{
|
||||
throw std::runtime_error("no event manager set yet");
|
||||
}
|
||||
manager_->connect(participant);
|
||||
}
|
||||
|
||||
void EventManager::Participant::disconnect(std::shared_ptr<EventManager::Participant> participant)
|
||||
{
|
||||
if (manager_ == nullptr)
|
||||
{
|
||||
throw std::runtime_error("no event manager set yet");
|
||||
}
|
||||
manager_->disconnect(participant);
|
||||
}
|
||||
|
||||
|
||||
void EventManager::Participant::emit(std::shared_ptr<EventManager::Event> event)
|
||||
{
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user