void Rule::Print() { cout << "Content of rule \"" << name << " - " << type << "\"" << endl; cout << "Conditions (" << conds.size() << ") :" << endl; for (uint i = 0;i < conds.size();i++) { Condition *c = conds[i]; if (c->getType() == COND_STD) { cout << " * Condition Standard : "; for (int j = 0;j < c->get_size();j++) { cout << "\"" << c->get_input(j)->get_param("name") << "\" "; } cout << endl; } else if (c->getType() == COND_SCRIPT) { cout << " * Condition Script" << endl; } else if (c->getType() == COND_START) { cout << " * Condition Start" << endl; } else { cout << " * Condition UNKNOWN !" << endl; } } cout << "Actions (" << actions.size() << ") :" << endl; for (uint i = 0;i < actions.size();i++) { Action *a = actions[i]; if (a->getType() == ACTION_STD) { cout << " * Action Standard : "; for (int j = 0;j < a->get_size();j++) { cout << "\"" << a->get_output(j)->get_param("name") << "\" "; } cout << endl; } else if (a->getType() == ACTION_MAIL) { cout << " * Action Mail" << endl; } else if (a->getType() == ACTION_SCRIPT) { cout << " * Action Script" << endl; } else if (a->getType() == ACTION_TOUCHSCREEN) { cout << " * Action Touchscreen" << endl; } else { cout << " * Action UNKNOWN !" << endl; } } cout << endl; }