summaryrefslogtreecommitdiffstats
path: root/src/spreadsheet/dumper_global.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spreadsheet/dumper_global.hpp')
-rw-r--r--src/spreadsheet/dumper_global.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/spreadsheet/dumper_global.hpp b/src/spreadsheet/dumper_global.hpp
new file mode 100644
index 0000000..96c5afc
--- /dev/null
+++ b/src/spreadsheet/dumper_global.hpp
@@ -0,0 +1,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: */