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

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

<B>Description:</B>
Verifies that the given layer(s) contain proper entities, and/or
if entity(ies) are placed in the proper layer(s).

<B>Input:</B>
    (String)   layer_str     - Such as, "1,22-28",
                               valid separators are  ',' and '-'.
    (Integer)  operator      - the relation between layer and entity type, it can be the following:
                               1, INCLUDE_ALL
                               2, INCLUDE_ONLY
                               3, MUTUAL
    (Name)     entity_type   - Specifies the entity type.
    (Name)     log_type      - LOG_NONE, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_ANY
    (String)   log_msg       - User defined log message

<B>Input Arguments:</B>
layer_str - String of the layer range description
operator - the relation between layer and entity type
entity_type - Specifies the entity type
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 given layers do not contain proper entities OR
Entites are not placed in the proper layer
Note:
    For example:
      valid operator is one of 'INCLUDE_ALL', 'INCLUDE_ONLY' and 'MUTUAL'
      {layer_a, INCLUDE_ALL entity_b}  means entity_b must be placed on layer_a.
      {layer_a, INCLUDE_ONLY entity_b} means layer_a can contain only entity_b, and no other entities.
      {layer_a, MUTUAL entity_b}       means entity_b must be placed on layer_a, and layer_a can contain only entity_b.

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