#include <ored/report/csvreport.hpp>
|
| CSVFileReport (const string &filename, const char sep=',', const bool commentCharacter=true, char quoteChar='\0', const std::string &nullString="#N/A", bool lowerHeader=false, QuantLib::Size rolloverSize=QuantLib::Null< QuantLib::Size >()) |
|
void | open () |
|
void | rollover () |
|
Report & | addColumn (const string &name, const ReportType &rt, Size precision=0) override |
|
Report & | next () override |
|
Report & | add (const ReportType &rt) override |
|
void | end () override |
|
void | flush () override |
|
|
typedef boost::variant< Size, Real, string, Date, Period > | ReportType |
|
◆ CSVFileReport()
CSVFileReport |
( |
const string & |
filename, |
|
|
const char |
sep = ',' , |
|
|
const bool |
commentCharacter = true , |
|
|
char |
quoteChar = '\0' , |
|
|
const std::string & |
nullString = "#N/A" , |
|
|
bool |
lowerHeader = false , |
|
|
QuantLib::Size |
rolloverSize = QuantLib::Null< QuantLib::Size >() |
|
) |
| |
Create a report with the given filename, will throw if it cannot open the file.
- Parameters
-
filename | name of the csv file that is created |
sep | separator character for the csv file. It defaults to a comma. |
commentCharacter | if true , the first row starts with the # character. |
quoteChar | character to use to quote strings. If not provided, strings are not quoted. |
nullString | string used to represent QuantLib::Null values or infinite values. If not provided, this defaults to #N/A . |
lowerHeader | if true , makes the first character of each header lower case. |
rolloverSize | in MB, if set we rollover over to a new csv when file size grows above this |