本文整理汇总了C++中Condition::get_size方法的典型用法代码示例。如果您正苦于以下问题:C++ Condition::get_size方法的具体用法?C++ Condition::get_size怎么用?C++ Condition::get_size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Condition
的用法示例。
在下文中一共展示了Condition::get_size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Print
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;
}