Report generateReport(string reportTitle) { Report rpt = Report(); rpt.setReportHeader("Peter Sands\nCISP 430\nSpring 2016\n"); rpt.setReportTitle("\t\t\t" + reportTitle + "\n\n"); return rpt; }
void generateBinarySearchTreeReportOutput(string outputFile, string reportTitle, A4BinaryTreeIterator<string, BinaryTreeNode> itr, bool useAvlTree, bool useAscending, bool displayHierarchy) { Report rpt = Report(); rpt.setReportHeader("Peter Sands\nCISP 430\nSpring 2016\n"); rpt.setReportTitle("\t\t\t" + reportTitle + "\n\n"); itr.configureA4(displayHierarchy); itr.a4iterate(LNR, (true == useAscending ? FORWARD : BACKWARD)); rpt.addContent(itr.getIterationResult()); saveReport(rpt, outputFile); }