/////////////////////////////////////////////////////////////////// // concreteCommand.cpp - define commands appropriate for // // ver 1.1 application // // // // Language: Visual C++, ver 7.1 // // Platform: Dell Dimension 8300, Windows XP, Pro, sp2 // // Application: CSE776 - Design Patterns, Summer 2005 // // Author: Jim Fawcett, Instructor // // CST 2-187, (315) 443-3948 // // jfawcett@twcny.rr.com // /////////////////////////////////////////////////////////////////// #include #include "concreteCommand.h" using namespace std; /////////////////////////////////////////////////////////////// // this function represents client #1 processing in // // response to one of the invoker::events // /////////////////////////////////////////////////////////////// void concreteCommand1::execute() { cout << "\n concreteCommand1 executing"; _rcvr.action(); } /////////////////////////////////////////////////////////////// // this function represents client #2 processing in // // response to one of the invoker::events // /////////////////////////////////////////////////////////////// void concreteCommand2::execute() { cout << "\n concreteCommand2 executing"; _rcvr.action(); }