2#ifndef OUTPUTSTREAMHANDLERSORTEDCSV_H_
3#define OUTPUTSTREAMHANDLERSORTEDCSV_H_
39 ,
const std::string
listSep =
""
91 ,
const size_t colToSort
92 ,
const bool sortLexOrder
93 ,
const std::string colSep
94 ,
const bool csvWithHeader
95 ,
const std::string listSep
98 , outStreamHandler(osh)
100 , colToSort(colToSort)
101 , sortLexOrder(sortLexOrder)
103 , csvWithHeader(csvWithHeader)
108 throw std::runtime_error(
"OutputStreamHandlerSortedCsv() : outStreamHandler == NULL");
111 throw std::runtime_error(
"OutputStreamHandlerSortedCsv() : colSep is empty");
Definition OutputStreamHandlerSortedCsv.h:22
const std::string listSep
the separator used within a single column to represent multiple values
Definition OutputStreamHandlerSortedCsv.h:83
const bool csvWithHeader
whether or not the CSV output will contain a header line
Definition OutputStreamHandlerSortedCsv.h:77
virtual std::ostream & getOutStream()
Definition OutputStreamHandlerSortedCsv.h:120
std::stringstream outStreamUnsorted
the stream to write output to
Definition OutputStreamHandlerSortedCsv.h:65
virtual ~OutputStreamHandlerSortedCsv()
const bool sortLexOrder
whether or not lexicographic (or numerical) sorting is to be done
Definition OutputStreamHandlerSortedCsv.h:71
const size_t colToSort
the CSV column to sort
Definition OutputStreamHandlerSortedCsv.h:68
std::string csvHeader
the parsed CSV header (empty if not parsed yet)
Definition OutputStreamHandlerSortedCsv.h:80
const std::string colSep
the column separator used within the output
Definition OutputStreamHandlerSortedCsv.h:74
OutputStreamHandlerSortedCsv(OutputStreamHandler *outStreamHandler, const size_t colToSort, const bool sortLexOrder, const std::string colSep, const bool csvWithHeader, const std::string listSep="")
Definition OutputStreamHandlerSortedCsv.h:90
OutputStreamHandler * outStreamHandler
the underlying OutputStreamHandler to which the final output is reported
Definition OutputStreamHandlerSortedCsv.h:62
Definition OutputStreamHandler.h:16
Definition Accessibility.h:13