Mixed data types in a row.
C++ library for creating XLSX files for MS Excel 2007 and above.
Brought to you by:
oxod,
programmeralex
What is the correct procedure to export mixed data types in a row?
Example code I have is like this:
The vector contains only integer (or other type as specified).
Is there a way we can have, say column one as string, then a double column, then a date column, then a few integer columns?
I would suggest if there is not yet a better way, maybe make CellDataStr, CellDataTime, CellDataInt, CellDataUInt, CellDataDbl etc inherit from a common parent class so we can handle it polymorphically... ? or something similar.
So far, there are no options to add entire row with mixed typed cells.
Yes, inheritance can make it work.
Initially it was made without inheritance feature because of performance reasons as this library targeted generating tonns of data where time becomes a critical factor
I cannot say when there going to be a next version, but according to the license you can customize it in any way you want