// $Header: /cvs/gled-1.2/GledCore/Glasses/ZIdentityFilter.cxx,v 1.3 2005/03/11 17:50:15 matevz Exp $

// Copyright (C) 1999-2005, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.

//__________________________________________________________________________
// ZIdentityFilter
//
//

#include "ZIdentityFilter.h"

#include "ZIdentityFilter.c7"

ClassImp(ZIdentityFilter)

/**************************************************************************/

 void ZIdentityFilter::_init()
{
  // !!!! Set all links to 0 !!!!
  mIdentity = 0;
  mOnMatch = ZMirFilter::R_Allow;
}

/**************************************************************************/

 ZMirFilter::Result_e ZIdentityFilter::FilterMIR(ZMIR& mir)
{
  if(mIdentity) {
    if(mir.Caller->HasIdentity(mIdentity))
      return (Result_e)mOnMatch;
    else
      return NegateResult((Result_e)mOnMatch);
  }
  return PARENT_GLASS::FilterMIR(mir);
}


/**************************************************************************/


ROOT page - Home page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.