make the code compile

This commit is contained in:
Thomas Fussell 2017-06-14 15:43:25 -04:00
parent b3c044948f
commit 9d312ee7f4
2 changed files with 20 additions and 9 deletions

View File

@ -23,13 +23,23 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#pragma once #pragma once
#include <cstddef> #include <functional>
#include <iterator> #include <iostream>
#include <memory>
#include <vector>
#include <xlnt/xlnt_config.hpp> #include <xlnt/xlnt_config.hpp>
namespace xlnt { namespace xlnt {
class cell;
class path;
class worksheet;
namespace detail {
class xlsx_consumer;
}
/// <summary> /// <summary>
/// workbook is the container for all other parts of the document. /// workbook is the container for all other parts of the document.
/// </summary> /// </summary>
@ -42,7 +52,7 @@ public:
/// Closes currently open read stream. This will be called automatically /// Closes currently open read stream. This will be called automatically
/// by the destructor if it hasn't already been called manually. /// by the destructor if it hasn't already been called manually.
/// </summary> /// </summary>
close(); void close();
/// <summary> /// <summary>
/// Registers callback as the function to be called when a cell is read. /// Registers callback as the function to be called when a cell is read.
@ -88,7 +98,7 @@ public:
/// Interprets file with the given filename as an XLSX file and sets the /// Interprets file with the given filename as an XLSX file and sets the
/// content of this workbook to match that file. /// content of this workbook to match that file.
/// </summary> /// </summary>
void open(const xlnt::path &filename); void open(const path &filename);
/// <summary> /// <summary>
/// Interprets data in stream as an XLSX file and sets the content of this /// Interprets data in stream as an XLSX file and sets the content of this

View File

@ -22,6 +22,7 @@
// @license: http://www.opensource.org/licenses/mit-license.php // @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file // @author: see AUTHORS file
#include <detail/serialization/xlsx_consumer.hpp>
#include <xlnt/workbook/streaming_workbook_reader.hpp> #include <xlnt/workbook/streaming_workbook_reader.hpp>
namespace xlnt { namespace xlnt {
@ -31,7 +32,7 @@ streaming_workbook_reader::~streaming_workbook_reader()
close(); close();
} }
streaming_workbook_reader::close() void streaming_workbook_reader::close()
{ {
if (consumer_) if (consumer_)
{ {
@ -41,22 +42,22 @@ streaming_workbook_reader::close()
void streaming_workbook_reader::on_cell(std::function<void(cell)> callback) void streaming_workbook_reader::on_cell(std::function<void(cell)> callback)
{ {
consumer_->on_cell(callback); //consumer_->on_cell(callback);
} }
void streaming_workbook_reader::on_worksheet_start(std::function<void(std::string)> callback) void streaming_workbook_reader::on_worksheet_start(std::function<void(std::string)> callback)
{ {
consumer_->on_worksheet_start(callback); //consumer_->on_worksheet_start(callback);
} }
void streaming_workbook_reader::on_worksheet_end(std::function<void(worksheet)> callback) void streaming_workbook_reader::on_worksheet_end(std::function<void(worksheet)> callback)
{ {
consumer_->on_worksheet_end(callback); //consumer_->on_worksheet_end(callback);
} }
void streaming_workbook_reader::open(const std::vector<std::uint8_t> &data) void streaming_workbook_reader::open(const std::vector<std::uint8_t> &data)
{ {
} }
void streaming_workbook_reader::open(const std::string &filename) void streaming_workbook_reader::open(const std::string &filename)