summaryrefslogtreecommitdiffstats
path: root/src/spreadsheet/dumper_global.hpp
blob: 96c5afc59970fe585bf302f167bed31bd4ed26b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDED_ORCUS_SPREADSHEET_DUMPER_GLOBAL_HPP
#define INCLUDED_ORCUS_SPREADSHEET_DUMPER_GLOBAL_HPP

#include <ixion/model_context.hpp>
#include <ixion/model_iterator.hpp>

#include <ostream>
#include <functional>

namespace orcus { namespace spreadsheet { namespace detail {

using func_str_handler = std::function<void(std::ostream&, const std::string&)>;
using func_empty_handler = std::function<void(std::ostream&)>;

void dump_cell_value(
    std::ostream& os, const ixion::model_context& cxt, const ixion::model_iterator::cell& cell,
    func_str_handler str_handler,
    func_empty_handler empty_handler);

}}}

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */