ReadMe.txt
上传用户:xrc9201
上传日期:2013-02-04
资源大小:35k
文件大小:4k
源码类别:

源码/资料

开发平台:

Visual C++

  1. ========================================================================
  2.                      Readme.Txt - Strategy Classes
  3. ========================================================================
  4. This file ( Readme.txt ) contains the following
  5. 1. About this application
  6. 2. File List
  7. 1. About this application
  8. =========================
  9. This is a sample application accompanying my article "Applying Strategy Pattern in C++ 
  10. Applications"
  11. In this application, the Strategy pattern is explained using a simple "Progress Indicator" 
  12. example.  Progress Indicators are used to indicate the progress of a lengthy operation by 
  13. means of a filling.  
  14. Application contains the following classes
  15. a ) CProgressIndicator - Progress indicator class derived from CWnd, playing the role 
  16. of the Context as described in the article.
  17. b ) CFiller - Abstract filler class, playing the role of the Strategy. 
  18. c ) CLToRFiller - Concrete Strategy, implementing left to right filling algorithm.
  19. d ) CRToLFiller - Concrete Strategy, implementing right to left filling algorithm.
  20. This application is developed using Visual C++ 5.0.
  21. This file contains a summary of what you will find in each of the files that
  22. make up your Strategy application.
  23. 2. File List
  24. ============
  25. /////////////////////////////////////////////////////////////////////////////
  26. Progress Indicator and Filler files:
  27. ProgInd.h, ProgInd.cpp - Progress indicator class definition and implementation.
  28. Filler.h, Filler.cpp - Filler class definition and implementation.
  29. /////////////////////////////////////////////////////////////////////////////
  30. Application files:
  31. Strategy.h
  32.     This is the main header file for the application.  It includes other
  33.     project specific headers (including Resource.h) and declares the
  34.     CStrategyApp application class.
  35. Strategy.cpp
  36.     This is the main application source file that contains the application
  37.     class CStrategyApp.
  38. Strategy.rc
  39.     This is a listing of all of the Microsoft Windows resources that the
  40.     program uses.  It includes the icons, bitmaps, and cursors that are stored
  41.     in the RES subdirectory.  This file can be directly edited in Microsoft
  42. Developer Studio.
  43. resStrategy.ico
  44.     This is an icon file, which is used as the application's icon.  This
  45.     icon is included by the main resource file Strategy.rc.
  46. resStrategy.rc2
  47.     This file contains resources that are not edited by Microsoft 
  48. Developer Studio.  You should place all resources not
  49. editable by the resource editor in this file.
  50. Strategy.clw
  51.     This file contains information used by ClassWizard to edit existing
  52.     classes or add new classes.  ClassWizard also uses this file to store
  53.     information needed to create and edit message maps and dialog data
  54.     maps and to create prototype member functions.
  55. /////////////////////////////////////////////////////////////////////////////
  56. AppWizard creates one dialog class:
  57. StrategyDlg.h, StrategyDlg.cpp - the dialog
  58.     These files contain your CStrategyDlg class.  This class defines
  59.     the behavior of your application's main dialog.  The dialog's
  60.     template is in Strategy.rc, which can be edited in Microsoft
  61. Developer Studio.
  62. /////////////////////////////////////////////////////////////////////////////
  63. Other standard files:
  64. StdAfx.h, StdAfx.cpp
  65.     These files are used to build a precompiled header (PCH) file
  66.     named Strategy.pch and a precompiled types file named StdAfx.obj.
  67. Resource.h
  68.     This is the standard header file, which defines new resource IDs.
  69.     Microsoft Developer Studio reads and updates this file.