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
13namespace orcus {
14
15namespace spreadsheet { namespace iface {
16 class import_factory;
17}}
18
19class ORCUS_DLLPUBLIC orcus_csv : public iface::import_filter
20{
21 orcus_csv(const orcus_csv&); // disabled
22 orcus_csv& operator=(const orcus_csv&); // disabled
23
24public:
26
27 virtual void read_file(const std::string& filepath);
28 virtual void read_stream(const char* content, size_t len);
29
30 virtual const char* get_name() const;
31
32private:
33 void parse(const char* content, size_t len);
34
35private:
37};
38
39}
40
41#endif
42/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: interface.hpp:24
Definition: orcus_csv.hpp:20
virtual void read_stream(const char *content, size_t len)
expects the whole content of the file
virtual void read_file(const std::string &filepath)
expects a system path to a local file
Definition: import_interface.hpp:882