Orcus
format_detection.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_FORMAT_DETECTION_HPP
9 #define ORCUS_FORMAT_DETECTION_HPP
10 
11 #include <orcus/env.hpp>
12 #include <orcus/types.hpp>
13 
14 #include <cstdlib>
15 #include <memory>
16 
17 namespace orcus {
18 
19 namespace iface {
20 
21 class import_filter;
22 
23 }
24 
25 namespace spreadsheet { namespace iface {
26 
27 class import_factory;
28 
29 }}
30 
36 ORCUS_DLLPUBLIC format_t detect(std::string_view strm);
37 
46 ORCUS_DLLPUBLIC std::shared_ptr<iface::import_filter> create_filter(
47  format_t type, spreadsheet::iface::import_factory* factory);
48 
49 } // namespace orcus
50 
51 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */