Skip to content

Commit

Permalink
Merge pull request #181 from mortenfyhn/feature/protected-bind
Browse files Browse the repository at this point in the history
Make Task::bind protected (instead of private)
  • Loading branch information
zepinto authored Sep 5, 2019
2 parents 0579bdd + 4b6e7d2 commit 9e96b3f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/DUNE/Tasks/Task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,17 @@ namespace DUNE
new Consumer<T, IMC::Message>(*task_obj, func));
}

//! Register a consumer for a given message identifier.
//! @param[in] message_id message identifier.
//! @param[in] consumer consumer object.
void
bind(unsigned int message_id, AbstractConsumer* consumer)
{
spew("registering consumer for '%s'",
IMC::Factory::getAbbrevFromId(message_id).c_str());
m_recipient->bind(message_id, consumer);
}

//! Request task to start/resume normal execution.
void
requestActivation(void);
Expand Down Expand Up @@ -809,17 +820,6 @@ namespace DUNE
void
run(void);

//! Register a consumer for a given message identifier.
//! @param[in] message_id message identifier.
//! @param[in] consumer consumer object.
void
bind(unsigned int message_id, AbstractConsumer* consumer)
{
spew("registering consumer for '%s'",
IMC::Factory::getAbbrevFromId(message_id).c_str());
m_recipient->bind(message_id, consumer);
}

//! Consume QueryEntityState messages and reply accordingly.
//! @param[in] msg QueryEntityState message.
void
Expand Down

0 comments on commit 9e96b3f

Please sign in to comment.