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