<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_update_all_features</TITLE><H1>%mqc_update_all_features </H1><P CLASS="Paragraph">Classname: <B>%mqc_update_all_features </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>
    Verifies that if all of the modeling features can be regenerated
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.
   (Integer)  log_type            -  Indicate which logging type to use to report the violation.
                                     1 - LOG_ERROR,
                                     2 - LOG_WARNING,
                                     3 - LOG_INFO,
                                     Default is 1 to log error.
    (String)  log_msg             -  User defined message to be added when the system reports the violation.
                                     Default is an empty string.
Results:
  PASS    --  features updated without errors.
  FAILED  --  failure encountered during update.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_update_all_features( %ug_base_checker );
</FONT></PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( String )                      %test_category: "Modeling.Features";
( String )                      %displayed_name: "Update All Features";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( list )                        log_type_option: { LOG_ERROR, 
                                                   LOG_WARNING, 
                                                   LOG_INFO};
( string )                      log_type_label: "Log Option";

</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;
( Integer Parameter )           log_type: 1;
( string Parameter )            log_msg: "";
</SPAN></FONT></PRE></DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"> checking ...</PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( string )                      log_msg_label: "Additional Message";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( any ) do_check:
@{
    $usr_msg << if ( log_msg: = "" ) then "" else log_msg: + "~n";

    $results << ug_mqc_update_all_features();

    if TypeName( $results ) = Integer
    then
    @{
        if $results != 0
        then
            ug_mqc_logError( $results, {}, $usr_msg )
        else
            donothing;
    }
    else if TypeName( $results ) = List
    then
    @{
        if -empty?( $results )
        then
        @{
            $features << first(  $results );
            $msgs     << second( $results );


           if -empty?( $features )
           then
           @{
               $count << length( $features );
               loop
               {
                   for $indx from 1 to $count;
                   for $each_feature is nth( $indx, $features );
                   for $each_msg is nth( $indx, $msgs );

                   do 
                     ug_mqc_log_object_detail( Nth( log_type:, log_type_option: ),
                                  { $each_feature }, $each_msg );
               };
           }
           else
                ug_mqc_lprintf( {"MQC debug: ug_mqc_update_all_features returns empty feature list" } );
        }
        else
            ug_mqc_lprintf( {"MQC debug: ug_mqc_update_all_features returns empty list" } );

    }
    else
        ug_mqc_lprintf( {"MQC debug: ERROR ug_mqc_update_all_features returns unsupported type." } );
};

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