/***************************************************************************
 *                          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 ISerialResolver
 *--------------------------------------------------------------------------
 * @created: Sunday, December 21, 2003 13:34:02
 */

#if !defined(ISerialResolver_h_included)
#define ISerialResolver_h_included
//forward declaration of this class might require
namespace core
{ namespace io
  { class ISerialResolver; }; };
#include <zmodeler.h>
#include <core/io/zmIOTypes.h>
#include <core/io/ISerializeable.h>


namespace core
{
  namespace io
  {
    
    class ISerialResolver : public ZUnknown
    {
    public:
      virtual ZRESULT resolveSerializeable(ZString strName, core::io::ISerializeable** ppSerial)=0;
      /* This roune is called on ::open when serialzeable was transiently created
       * and need to be located insize zmodeler. ISerialResolver is responsible for
       * quering required interface and putting it into zmodeler. e.g. ICompatibilityInfo
       * should be set as current compatibility */
      virtual ZRESULT locateResolvedSerializeable(ZString strName, core::io::ISerializeable* pSerial)=0;
      virtual ZRESULT enumSerialIdentifiers(ZStringSeq& seqIDs)=0;
    
    };//class ISerialResolver
  };//io
};//core

#endif
