#ifndef MT4Q2b_H #define MT4Q2b_H /////////////////////////////////////////////////////////////// // MT4Q2b.h - Alternate Logger // // // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2012 // /////////////////////////////////////////////////////////////// /* * This implementation does not use inheritance and so will not * meet the "behaves like a string" requirement. I provide this * to show that there is a simple almost compliant solution * using an approach that many of you attempted. */ #include class Logger { public: Logger(); void addMessage(const std::string& msg); void addToLog(const std::string& logItem); std::string log(); size_t size(); private: std::string theLog; }; #endif