#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; } healthHelper.setParentQueue(parent.getCommandQueue()); modeHelper.setParentQueue(parent.getCommandQueue()); return returnvalue::OK; }