Orcus
orcus_xls_xml.hpp
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 */
7
8#ifndef INCLUDED_ORCUS_ORCUS_XLS_XML_HPP
9#define INCLUDED_ORCUS_ORCUS_XLS_XML_HPP
10
11#include "interface.hpp"
12#include <memory>
13
14namespace orcus {
15
16namespace spreadsheet { namespace iface { class import_factory; }}
17
18struct orcus_xls_xml_impl;
19
20class ORCUS_DLLPUBLIC orcus_xls_xml : public iface::import_filter
21{
22 struct impl;
23 std::unique_ptr<impl> mp_impl;
24
25public:
28
29 orcus_xls_xml(const orcus_xls_xml&) = delete;
30 orcus_xls_xml& operator= (const orcus_xls_xml&) = delete;
31
32 static bool detect(const unsigned char* blob, size_t size);
33
34 virtual void read_file(std::string_view filepath) override;
35 virtual void read_stream(std::string_view stream) override;
36
37 virtual std::string_view get_name() const override;
38};
39
40}
41
42#endif
43/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: interface.hpp:27
Definition: orcus_xls_xml.hpp:21
virtual void read_stream(std::string_view stream) override
virtual std::string_view get_name() const override
virtual void read_file(std::string_view filepath) override
Definition: import_interface.hpp:1199