Logo
Reference manual - version ored_version
Public Member Functions | List of all members
InMemoryReport Class Reference

#include <ored/report/inmemoryreport.hpp>

+ Inheritance diagram for InMemoryReport:

Public Member Functions

ReportaddColumn (const string &name, const ReportType &rt, Size precision=0) override
 
Reportnext () override
 
Reportadd (const ReportType &rt) override
 
Reportadd (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
 

Detailed Description

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