<HTML>
<HEAD>
<link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY>
<TITLE>mqc_checkLayerOfCategory </TITLE>
<H1>mqc_checkLayerOfCategory</H1><H4>Synopsis</H4><PRE><FONT COLOR = blue>Defun: mqc_checkLayerOfCategory(
       String, $query_category,
       Integer, $check_direction,
       String, $layerArray,
       Name, $log_type,
       String, $log_msg )
@{...} Integer;

</FONT></PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">

<B>Description:</B>
Checks the category against the layer_mask.
This function will add the checking results to MQC log.

<B>Input:</B>
    (String)   query_category   -  Name of the category to be checked
    (Integer)  check_direction  -  This value can only be one of the following three choices:
                                     1: INCLUDE_ALL  - category must contain the specified layers
                                     2: INCLUDE_ONLY - the specified layers must contain layers
                                                       of the category
                                     3: MUTUAL       - category must contain the specified layers and
                                                       the specified layers must contain layers
                                                       of the category
    (String)   layerArray       -  Layers to check if matching to layer_mask of the category
    (Name)     log_type         -  LOG_NONE, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_ANY
    (String)   log_msg          -  User defined log message

<B>Input Arguments:</B>
query_category - Name of the category to be checked
check_direction - The relation between category and layer
layerArray - Layers to check if matching to layer_mask of the category
log_type - LOG_NONE, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_ANY
log_msg - User defined log message

<B>Returns:</B>
0 - no error
otherwise, Error - The category does not contain the specified layers AND/OR
The layers do not contain the category layers

<B>See Also:</B>
</PRE></FONT></PRE>
<p class=EndLine>&nbsp;</p>
<p class=blank>&nbsp;</p>
</BODY>
</HTML>
