minor fixes to get it to compile. lots of failing tests for now...

This commit is contained in:
Thomas Fussell 2017-06-20 13:29:50 -04:00
parent d7e7526beb
commit a9fd6b064e
5 changed files with 14 additions and 3 deletions

View File

@ -50,6 +50,7 @@ class xlsx_consumer;
class XLNT_API streaming_workbook_reader
{
public:
streaming_workbook_reader();
~streaming_workbook_reader();
/// <summary>

View File

@ -88,6 +88,6 @@ public:
/// Serializes the workbook into an XLSX file and saves the data into stream.
/// </summary>
void open(std::ostream &stream) const;
}
};
} // namespace xlnt

View File

@ -151,6 +151,12 @@ cell xlsx_consumer::read_cell()
return cell(nullptr);
}
void xlsx_consumer::read_worksheet(const std::string &rel)
{
read_worksheet_begin();
read_worksheet_end();
}
std::string xlsx_consumer::read_worksheet_begin()
{
if (worksheet_queue_.empty())

View File

@ -71,7 +71,6 @@ public:
private:
friend class streaming_workbook_reader;
void open(std::istream &source);
bool has_cell();

View File

@ -73,9 +73,14 @@ void open_stream(std::ofstream &stream, const std::string &path)
namespace xlnt {
streaming_workbook_reader::streaming_workbook_reader()
{
}
streaming_workbook_reader::~streaming_workbook_reader()
{
close();
close();
}
void streaming_workbook_reader::close()