⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saxcontenthandlerimpl.h

📁 一个WinCE6。0下的IP phone的源代码
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
// ************************************************************
// SAXContentHandlerImpl.h
// 
// Header for wrapper SAX content handler class
//
// Copyright 2003 Microsoft Corporation, All Rights Reserved
//
// ************************************************************

#pragma once

class CSAXContentHandlerImpl : public ISAXContentHandler  
{
public:
    // Constructor/Destructor
    CSAXContentHandlerImpl() {}
    virtual ~CSAXContentHandlerImpl() {}

    // IUnknown methods
    STDMETHOD (QueryInterface)(REFIID riid, void **ppv) PURE;
    STDMETHOD_(ULONG, AddRef)() PURE;
    STDMETHOD_(ULONG, Release)() PURE;

    // ISAXContentHandler methods
    HRESULT STDMETHODCALLTYPE putDocumentLocator( 
            /* [in] */ ISAXLocator *pLocator)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::putDocumentLocator invoked\r\n")));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE startDocument(void)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::startDocument invoked\r\n")));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE endDocument(void)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::endDocument invoked\r\n")));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE startPrefixMapping( 
            /* [in] */ const wchar_t *pwchPrefix,
            /* [in] */ int cchPrefix,
            /* [in] */ const wchar_t *pwchUri,
            /* [in] */ int cchUri)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::startPrefixMapping invoked (prefix=%s, uri=%s)\r\n"), pwchPrefix, pwchUri));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE endPrefixMapping( 
            /* [in] */ const wchar_t *pwchPrefix,
            /* [in] */ int cchPrefix)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::endPrefixMapping invoked (prefix=%s\r\n"), pwchPrefix));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE startElement( 
            /* [in] */ const wchar_t *pwchNamespaceUri,
            /* [in] */ int cchNamespaceUri,
            /* [in] */ const wchar_t *pwchLocalName,
            /* [in] */ int cchLocalName,
            /* [in] */ const wchar_t *pwchQName,
            /* [in] */ int cchQName,
            /* [in] */ ISAXAttributes *pAttributes)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::startElement invoked (name=%s)\r\n"), pwchLocalName));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE endElement( 
            /* [in] */ const wchar_t *pwchNamespaceUri,
            /* [in] */ int cchNamespaceUri,
            /* [in] */ const wchar_t *pwchLocalName,
            /* [in] */ int cchLocalName,
            /* [in] */ const wchar_t *pwchQName,
            /* [in] */ int cchQName)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::endElement invoked (name=%s)\r\n"), pwchLocalName));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE characters( 
            /* [in] */ const wchar_t *pwchChars,
            /* [in] */ int cchChars)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::characters invoked (text=%s)\r\n"), pwchChars));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE ignorableWhitespace( 
            /* [in] */ const wchar_t *pwchChars,
            /* [in] */ int cchChars)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::ignorableWhitespace invoked (text=%s)\r\n"), pwchChars));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE processingInstruction( 
            /* [in] */ const wchar_t *pwchTarget,
            /* [in] */ int cchTarget,
            /* [in] */ const wchar_t *pwchData,
            /* [in] */ int cchData)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::processingInstruction invoked (target=%s, data=%s)\r\n"), pwchTarget, pwchData));
        return S_OK;
    }
        
    HRESULT STDMETHODCALLTYPE skippedEntity( 
            /* [in] */ const wchar_t *pwchName,
            /* [in] */ int cchName)
    {
        DEBUGMSG(1, (TEXT("CSAXContentHandlerImpl::skippedEntity invoked (name=%s)\r\n"), pwchName));
        return S_OK;
    }

private:
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -