<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_report_emarking_attributes</TITLE><H1>%mqc_report_emarking_attributes </H1><P CLASS="Paragraph">Classname: <B>%mqc_report_emarking_attributes </B></P><P CLASS="Paragraph">Inherits from: <B><A href=..\checkmate\xug_base_checker.html>%ug_base_checker </A></B></P><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"> </PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">
<B>Description:</B>
    Report a list of emarking attributes in the validated part.
Parameters:
    (Boolean)  disabled?        -  If it is true, the checker is disabled.
                                   Default is False.
    (Boolean)  save_log_in_part -  The flag indicates whether the checking results can
                                   be saved to the part file
                                   Default is True.
    (String)   log_msg          -  User defined message to be added when the system
                                   reports the violation.
                                   Default is an empty string.
Results:
    INFO    --  List of E-marking attributes.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_report_emarking_attributes( %ug_base_checker );
</FONT></PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( String )               %test_category:  "Get Information.File Structure";
   ( String )               %displayed_name: "Report E-marking attributes";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( Boolean Parameter )    disabled?: false;
   ( Boolean Parameter )    save_log_in_part: True;
   ( string Parameter )    log_msg: "";
</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( string )              log_msg_label: "Log Message";

  #checking ...
   ( Any Uncached )   do_check:
   @{
        $emarkings << mqc_askEmarkingAttributes();

        $count << length($emarkings);

        if ($count > 0) then
        @{           
            $all_emarking_attr_types << Loop
            {
                For $each_emarking In $emarkings;
                For $emarking_type Is mqc_askEmarkingAttributeType( $each_emarking );
                Append {$emarking_type};
            };

            $detail_msg << "The total number of E-marking attributes is "+
                           Stringvalue($count) + ".~n " +
                           "Existing E-marking attribute types:~n    " +
                           mqc_list_to_string( $all_emarking_attr_types, "~n   " );

            $usr_msg << If ( "" = log_msg: ) Then "" Else log_msg: + "~n";

            ug_mqc_log( LOG_INFO, $emarkings, $usr_msg+$detail_msg );
        }
        else
        @{
            $msg << "No existing E-marking attribute.";

            $usr_msg << If ( "" = log_msg: ) Then "" Else log_msg: + "~n";

            ug_mqc_log( LOG_INFO, {}, $usr_msg+$msg );
        };

   };

</SPAN></FONT></PRE></DIV></TABLE><p class=EndLine>&nbsp;</p><p class=blank>&nbsp;</p></BODY></HTML>