Beispiel #1
0
/* ****************************************************************************
*
* EntityId::equal - return TRUE if EXACT match
*/
bool EntityId::equal(EntityId* eP)
{
  return ((eP->id                == id)                &&
          (eP->type              == type)              &&
          (eP->isPatternIsTrue() == isPatternIsTrue()) &&
          (eP->isTypePattern     == isTypePattern));
}
Beispiel #2
0
/* ****************************************************************************
*
* EntityId::equal - return TRUE if EXACT match
*/
bool EntityId::equal(EntityId* eP)
{
  if (eP->id != id)
  {
    return false;
  }

  if (eP->type != type)
  {
    return false;
  }

  if (eP->isPatternIsTrue() == isPatternIsTrue())
  {
    return true;
  }

  return false;
}