2010-10-20 17:12:46 +02:00
|
|
|
// Copyright (c) 2010 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool and should not edited
|
|
|
|
// by hand. See the translator.README.txt file in the tools directory for
|
|
|
|
// more information.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _XMLREADER_CTOCPP_H
|
|
|
|
#define _XMLREADER_CTOCPP_H
|
|
|
|
|
|
|
|
#ifndef USING_CEF_SHARED
|
|
|
|
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
|
|
|
#else // USING_CEF_SHARED
|
|
|
|
|
|
|
|
#include "include/cef.h"
|
|
|
|
#include "include/cef_capi.h"
|
|
|
|
#include "libcef_dll/ctocpp/ctocpp.h"
|
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed wrapper-side only.
|
|
|
|
class CefXmlReaderCToCpp
|
|
|
|
: public CefCToCpp<CefXmlReaderCToCpp, CefXmlReader, cef_xml_reader_t>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CefXmlReaderCToCpp(cef_xml_reader_t* str)
|
|
|
|
: CefCToCpp<CefXmlReaderCToCpp, CefXmlReader, cef_xml_reader_t>(str) {}
|
|
|
|
virtual ~CefXmlReaderCToCpp() {}
|
|
|
|
|
|
|
|
// CefXmlReader methods
|
2010-10-21 17:19:43 +02:00
|
|
|
virtual bool MoveToNextNode();
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual bool Close();
|
|
|
|
virtual bool HasError();
|
2010-11-22 18:49:46 +01:00
|
|
|
virtual CefString GetError();
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual NodeType GetType();
|
|
|
|
virtual int GetDepth();
|
2010-11-22 18:49:46 +01:00
|
|
|
virtual CefString GetLocalName();
|
|
|
|
virtual CefString GetPrefix();
|
|
|
|
virtual CefString GetQualifiedName();
|
|
|
|
virtual CefString GetNamespaceURI();
|
|
|
|
virtual CefString GetBaseURI();
|
|
|
|
virtual CefString GetXmlLang();
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual bool IsEmptyElement();
|
|
|
|
virtual bool HasValue();
|
2010-11-22 18:49:46 +01:00
|
|
|
virtual CefString GetValue();
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual bool HasAttributes();
|
|
|
|
virtual size_t GetAttributeCount();
|
2010-11-22 18:49:46 +01:00
|
|
|
virtual CefString GetAttribute(int index);
|
|
|
|
virtual CefString GetAttribute(const CefString& qualifiedName);
|
|
|
|
virtual CefString GetAttribute(const CefString& localName,
|
|
|
|
const CefString& namespaceURI);
|
|
|
|
virtual CefString GetInnerXml();
|
|
|
|
virtual CefString GetOuterXml();
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual int GetLineNumber();
|
|
|
|
virtual bool MoveToAttribute(int index);
|
2010-11-22 18:49:46 +01:00
|
|
|
virtual bool MoveToAttribute(const CefString& qualifiedName);
|
|
|
|
virtual bool MoveToAttribute(const CefString& localName,
|
|
|
|
const CefString& namespaceURI);
|
2010-10-20 17:12:46 +02:00
|
|
|
virtual bool MoveToFirstAttribute();
|
|
|
|
virtual bool MoveToNextAttribute();
|
|
|
|
virtual bool MoveToCarryingElement();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USING_CEF_SHARED
|
|
|
|
#endif // _XMLREADER_CTOCPP_H
|
|
|
|
|