#include <ored/report/inmemoryreport.hpp>
|
|
| InMemoryReport (Size bufferSize=0) |
| Report & | addColumn (const string &name, const ReportType &rt, Size precision=0, bool scientific=false) override |
| Report & | next () override |
| Report & | add (const ReportType &rt) override |
|
Report & | add (const InMemoryReport &report) |
| void | end () override |
|
Size | columns () const |
|
Size | rows () const |
|
const string & | header (Size i) const |
|
bool | hasHeader (string h) const |
|
ReportType | columnType (Size i) const |
|
Size | columnPrecision (Size i) const |
|
const ReportType & | data (Size i, Size j) const |
| | Returns the data.
|
|
void | toFile (const string &filename, const char sep=',', const bool commentCharacter=true, char quoteChar='\0', const string &nullString="#N/A", bool lowerHeader=false) |
|
void | jumpToColumn (Size i) |
|
size_t | columnPosition (const std::string &columnName) |
| | Return the position of a column, throws an exception if columnName not in report.
|
|
virtual void | flush () |
|
|
typedef boost::variant< Size, Real, string, Date, Period > | ReportType |
InMemoryReport just stores report information in local vectors and provides an interface to access the values. It could be used as a backend to a GUI
◆ addColumn()
| Report & addColumn |
( |
const string & | name, |
|
|
const ReportType & | rt, |
|
|
Size | precision = 0, |
|
|
bool | scientific = false ) |
|
overridevirtual |
◆ next()
◆ add()
| Report & add |
( |
const ReportType & | rt | ) |
|
|
overridevirtual |
◆ end()