1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 // 5 // --------------------------------------------------------------------------- 6 // 7 // This file was generated by the CEF translator tool. If making changes by 8 // hand only do so within the body of existing method and function 9 // implementations. See the translator.README.txt file in the tools directory 10 // for more information. 11 // 12 // $hash=1f6c29938591312a257cfe1b77de830c90b4a6c3$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_XML_READER_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_XML_READER_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(WRAPPING_CEF_SHARED) 20 #error This file can be included wrapper-side only 21 #endif 22 23 #include "include/capi/cef_xml_reader_capi.h" 24 #include "include/cef_xml_reader.h" 25 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 26 27 // Wrap a C structure with a C++ class. 28 // This class may be instantiated and accessed wrapper-side only. 29 class CefXmlReaderCToCpp : public CefCToCppRefCounted<CefXmlReaderCToCpp, 30 CefXmlReader, 31 cef_xml_reader_t> { 32 public: 33 CefXmlReaderCToCpp(); 34 virtual ~CefXmlReaderCToCpp(); 35 36 // CefXmlReader methods. 37 bool MoveToNextNode() override; 38 bool Close() override; 39 bool HasError() override; 40 CefString GetError() override; 41 NodeType GetType() override; 42 int GetDepth() override; 43 CefString GetLocalName() override; 44 CefString GetPrefix() override; 45 CefString GetQualifiedName() override; 46 CefString GetNamespaceURI() override; 47 CefString GetBaseURI() override; 48 CefString GetXmlLang() override; 49 bool IsEmptyElement() override; 50 bool HasValue() override; 51 CefString GetValue() override; 52 bool HasAttributes() override; 53 size_t GetAttributeCount() override; 54 CefString GetAttribute(int index) override; 55 CefString GetAttribute(const CefString& qualifiedName) override; 56 CefString GetAttribute(const CefString& localName, 57 const CefString& namespaceURI) override; 58 CefString GetInnerXml() override; 59 CefString GetOuterXml() override; 60 int GetLineNumber() override; 61 bool MoveToAttribute(int index) override; 62 bool MoveToAttribute(const CefString& qualifiedName) override; 63 bool MoveToAttribute(const CefString& localName, 64 const CefString& namespaceURI) override; 65 bool MoveToFirstAttribute() override; 66 bool MoveToNextAttribute() override; 67 bool MoveToCarryingElement() override; 68 }; 69 70 #endif // CEF_LIBCEF_DLL_CTOCPP_XML_READER_CTOCPP_H_ 71