16 lines
566 B
C++
16 lines
566 B
C++
#include "helper.h"
|
|
|
|
ReturnValue_t modetree::connectModeTreeParent(HasModeTreeChildrenIF& parent,
|
|
const ModeTreeChildIF& child,
|
|
HealthHelper* healthHelper, ModeHelper& modeHelper) {
|
|
ReturnValue_t result = parent.registerChild(child);
|
|
if (result != returnvalue::OK) {
|
|
return result;
|
|
}
|
|
if (healthHelper != nullptr) {
|
|
healthHelper->setParentQueue(parent.getCommandQueue());
|
|
}
|
|
modeHelper.setParentQueue(parent.getCommandQueue());
|
|
return returnvalue::OK;
|
|
}
|