/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IBindCondition
 *--------------------------------------------------------------------------
 * @created: Tuesday, April 19, 2005 12:47:13
 */

#if !defined(IBindCondition_h_included)
#define IBindCondition_h_included
//forward declaration of this class might require
namespace core
{ namespace bind
  { class IBindCondition; class CBindConditionCol; }; };
#include <zmodeler.h>


namespace core
{
  namespace bind
  {
    
    class IBindCondition : public ZUnknown
    {
    public:
      virtual ZRESULT bind(ZUnknown* pSrc, ZUnknown* pTgt)=0;
      virtual ZRESULT unbind(ZUnknown* pSrc, ZUnknown* pTgt)=0;
    
    };//class IBindCondition
    
    //
    // collection template
    //
    class CBindConditionCol : public ZUnknown,
        public ZIntrCollection<IBindCondition>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CBindConditionCol)
    };//class CBindConditionCol
  };//bind
};//core

#endif
