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
15namespace orcus {
16
17namespace spreadsheet { namespace iface { class import_factory; }}
18
19class ORCUS_DLLPUBLIC orcus_gnumeric : public iface::import_filter
20{
21 struct impl;
22 std::unique_ptr<impl> mp_impl;
23public:
24 orcus_gnumeric() = delete;
25 orcus_gnumeric(const orcus_gnumeric&) = delete;
26 orcus_gnumeric& operator=(const orcus_gnumeric&) = delete;
27
30
31 static bool detect(const unsigned char* blob, size_t size);
32
33 virtual void read_file(const std::string& filepath) override;
34
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:24
Definition: orcus_gnumeric.hpp:20
virtual void read_file(const std::string &filepath) override
expects a system path to a local file
virtual void read_stream(std::string_view stream) override
expects the whole content of the file
Definition: import_interface.hpp:898