Orcus
interface.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_INTERFACE_HPP
9 #define ORCUS_INTERFACE_HPP
10 
11 #include "env.hpp"
12 
13 #include <string>
14 
15 namespace orcus {
16 
17 struct config;
18 
19 namespace iface {
20 
21 class ORCUS_DLLPUBLIC import_filter
22 {
23  struct impl;
24  impl* mp_impl;
25 
26 public:
27  import_filter();
28  virtual ~import_filter();
29 
31  virtual void read_file(const std::string& filepath) = 0;
32 
34  virtual void read_stream(const char* content, size_t len) = 0;
35 
36  virtual const char* get_name() const = 0;
37 
38  void set_config(const orcus::config& v);
39  const orcus::config& get_config() const;
40 };
41 
42 class ORCUS_DLLPUBLIC document_dumper
43 {
44 public:
45  virtual ~document_dumper();
46  virtual void dump_flat(const std::string& outdir) const = 0;
47  virtual void dump_html(const std::string& outdir) const = 0;
48  virtual void dump_check(std::ostream& os) const = 0;
49 };
50 
51 }}
52 
53 #endif
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: interface.hpp:42
Definition: config.hpp:17
Definition: base64.hpp:15
Definition: interface.hpp:21