#ifndef CONCRETEAPPLICATION_H #define CONCRETEAPPLICATION_H ///////////////////////////////////////////////////////////////////// // ConcreteApplication.h - concrete application and document // // // // Jim Fawcett, CSE776 - Design Patterns, Summer 2011 // ///////////////////////////////////////////////////////////////////// /* * Notes: * - Usually we would put factory and product into seperate modules * as they would tend to vary under different conditions. * We won't go to that trouble for this demo. */ #include "Application.h" class ConcreteDocument : public IDocument { void Edit(); }; class ConcreteApplication : public IApplication { IDocument* CreateDocument(); void DoEdit(); }; #endif