int EntityRuleHandler::check(const Atlas::Objects::Root & desc) { if (desc->getObjtype() != "class") { return -1; } return m_builder->isTask(desc->getParents().front()) ? -1 : 0; }
virtual void send(const Atlas::Objects::Root &obj) { std::cout << "Sending " << obj->getParents().front() << std::endl << std::flush; }
int TaskRuleHandler::check(const Atlas::Objects::Root & desc) { return m_builder->isTask(desc->getParents().front()) ? 0 : -1; }