Orcus
Loading...
Searching...
No Matches
orcus_gnumeric.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 ORCUS_ORCUS_GNUMERIC_HPP
9#define ORCUS_ORCUS_GNUMERIC_HPP
10
11#include "interface.hpp"
12
13#include <memory>
14#include <string_view>
15
16namespace orcus {
17
18namespace spreadsheet { namespace iface { class import_factory; }}
19
20class ORCUS_DLLPUBLIC orcus_gnumeric : public iface::import_filter
21{
22 struct impl;
23 std::unique_ptr<impl> mp_impl;
24public:
25 orcus_gnumeric() = delete;
26 orcus_gnumeric(const orcus_gnumeric&) = delete;
27 orcus_gnumeric& operator=(const orcus_gnumeric&) = delete;
28
29 orcus_gnumeric(spreadsheet::iface::import_factory* factory);
30 ~orcus_gnumeric();
31
32 static bool detect(std::string_view strm);
33
34 virtual void read_file(std::string_view filepath) override;
35 virtual void read_file(std::u16string_view filepath) override;
36 virtual void read_stream(std::string_view stream) override;
37
38 virtual std::string_view get_name() const override;
39};
40
41}
42
43#endif
44/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition interface.hpp:27
virtual std::string_view get_name() const override
virtual void read_file(std::string_view filepath) override
virtual void read_stream(std::string_view stream) override
Definition import_interface.hpp:1184