NDEVR
API Documentation
ReportJSONMaker

Creates a JSON data structure that can be used for generating a report in MSWord. More...

Collaboration diagram for ReportJSONMaker:
[legend]

Public Member Functions

 ReportJSONMaker (QTModelManager *manager)
 Constructs a report JSON maker for the given model manager.
void addProjectUnits ()
 Adds project unit information to the JSON structure.
void setTemplate (const ReportTemplate &report_template, JSONNode &node)
 Sets the report template data into a JSON node.
JSONNodetemplateRoot ()
 Retrieves the template root node within the JSON structure.

Public Attributes

QTModelManagermanager
 The model manager providing data for the report.
JSONNode root
 The root JSON node of the report data.

Detailed Description

Creates a JSON data structure that can be used for generating a report in MSWord.


Definition at line 44 of file ReportIterator.h.

Constructor & Destructor Documentation

◆ ReportJSONMaker()

ReportJSONMaker::ReportJSONMaker ( QTModelManager * manager)

Constructs a report JSON maker for the given model manager.

Parameters
[in]managerThe model manager to source data from.

References manager.

Member Function Documentation

◆ setTemplate()

void ReportJSONMaker::setTemplate ( const ReportTemplate & report_template,
JSONNode & node )

Sets the report template data into a JSON node.

Parameters
[in]report_templateThe report template to apply.
[in]nodeThe JSON node to populate with template data.

◆ templateRoot()

JSONNode & ReportJSONMaker::templateRoot ( )

Retrieves the template root node within the JSON structure.

Returns
A reference to the template root JSONNode.

The documentation for this struct was generated from the following file: