#include #include "Report.h" using namespace std; Report::Report(int aID, string author, string title, string textBody) : Document(DOC_TYPE_REPORT, aID, author, textBody), m_title(title) { } string Report::GetTitle() { return m_title; } void Report::DisplayHeader() { cout << "Document #: " << GetID() << endl; cout << "Author: " << GetAuthor() << endl; cout << "Title: " << GetTitle() << endl; } void Report::DisplayBody() { cout << "Contents:\n"; cout << GetBody(); } bool Report::Search(string searchString) { string textBody = GetBody(); return textBody.find(searchString) != string::npos; } Report *Report::CreateResponse(string author, string textBody, int nextID) { // STUB: // // YOU ARE RESPONSIBLE FOR WRITING THE // CODE FOR THIS METHOD // (until you do, you will continue to get compiler warnings about // "no return statement in function returning non-void" }