/***************************************************************************
 *                          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 IXMLWriteService
 *--------------------------------------------------------------------------
 * @created: Thursday, May 22, 2003 12:09:44
 */

#if !defined(IXMLWriteService_h_included)
#define IXMLWriteService_h_included
//forward declaration of this class might require
namespace services
{ class IXMLWriteService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IService.h>
#include <core/io/IStream.h>


namespace services
{
  
  class IXMLWriteService : public services::IService
  {
  public:
    virtual ZRESULT setStream(core::io::IStream* pStream)=0;
    virtual ZRESULT beginDocument(void)=0;
    virtual ZRESULT endDocument(void)=0;
    virtual ZRESULT beginElement(ZString& strName, ZStringSeq& seqAttrs, bool bOneLine=false)=0;
    virtual ZRESULT endElement(ZString& strName)=0;
    virtual ZRESULT comment(ZString strComment)=0;
    virtual ZRESULT text(ZString& strText)=0;
  
  };//class IXMLWriteService
};//services

#endif
