本文整理汇总了C++中CAction::afficheInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ CAction::afficheInfo方法的具体用法?C++ CAction::afficheInfo怎么用?C++ CAction::afficheInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAction
的用法示例。
在下文中一共展示了CAction::afficheInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: print_variable_list
void print_variable_list()
{
CActions * actions;
CAction * action;
int printed = 0;
bool found;
printf("Action defined Per Message :" SIPP_ENDL);
printed++;
found = false;
for(unsigned int i=0; i<display_scenario->messages.size(); i++) {
message *curmsg = display_scenario->messages[i];
actions = curmsg->M_actions;
if(actions != NULL) {
switch(curmsg->M_type) {
case MSG_TYPE_RECV:
printf("=> Message[%u] (Receive Message) - "
"[%d] action(s) defined :" SIPP_ENDL,
i,
actions->getActionSize());
printed++;
break;
case MSG_TYPE_RECVCMD:
printf("=> Message[%u] (Receive Command Message) - "
"[%d] action(s) defined :" SIPP_ENDL,
i,
actions->getActionSize());
printed++;
break;
default:
printf("=> Message[%u] - [%d] action(s) defined :" SIPP_ENDL,
i,
actions->getActionSize());
printed++;
break;
}
for(int j=0; j<actions->getActionSize(); j++) {
action = actions->getAction(j);
if(action != NULL) {
printf(" --> action[%d] = ", j);
action->afficheInfo();
printf(SIPP_ENDL);
printed++;
found = true;
}
}
}
}
if(!found) {
printed++;
printf("=> No action found on any messages"SIPP_ENDL);
}
printf(SIPP_ENDL);
for(unsigned int i=0; i<(display_scenario->messages.size() + 5 - printed); i++) {
printf(SIPP_ENDL);
}
}