#include <ored/report/inmemoryreport.hpp>
Public Member Functions | |
Report & | addColumn (const string &name, const ReportType &rt, Size precision=0) 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 vector< ReportType > & | data (Size i) 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) |
Public Member Functions inherited from Report | |
virtual void | flush () |
Additional Inherited Members | |
Public Types inherited from Report | |
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