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