kodi
XBMCTinyXML2.h
1 /*
2  * Copyright (C) 2022 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <cstdio>
12 #include <string>
13 #include <string_view>
14 
15 #include <tinyxml2.h>
16 
17 class CXBMCTinyXML2 : public tinyxml2::XMLDocument
18 {
19 public:
20  CXBMCTinyXML2() = default;
21  bool LoadFile(const std::string& filename);
22  bool LoadFile(FILE* file);
23  bool SaveFile(const std::string& filename) const;
24  bool Parse(std::string_view inputdata);
25  bool Parse(std::string&& inputdata);
26 
27 private:
28  bool ParseHelper(size_t pos, std::string&& inputdata);
29 };
Definition: XBMCTinyXML2.h:17
Definition: LibInputPointer.h:13