strategy

所属分类:源码/资料
开发工具:Visual C++
文件大小:35KB
下载次数:12
上传日期:2004-06-25 13:09:03
上 传 者caochao
说明:  在C++程序中使用Strategy模板
(use Strategy stage in programme c++.)

文件列表:
Filler.cpp (4848, 1998-11-25)
Filler.h (1384, 1998-11-25)
ProgInd.cpp (2638, 1998-11-25)
ProgInd.h (1079, 1998-11-25)
res (0, 1998-11-24)
resource.h (910, 1998-11-25)
res\Strategy.ico (1078, 1998-11-24)
res\Strategy.rc2 (400, 1998-11-24)
StdAfx.cpp (206, 1998-11-24)
StdAfx.h (928, 1998-11-24)
Strategy.aps (35292, 1998-11-25)
Strategy.clw (1262, 1998-11-25)
Strategy.cpp (2058, 1998-11-24)
Strategy.dsp (4284, 1998-11-25)
Strategy.dsw (539, 1998-11-24)
Strategy.h (1354, 1998-11-24)
Strategy.ncb (82944, 1998-11-25)
Strategy.opt (49664, 1998-11-25)
Strategy.plg (2529, 1998-11-25)
Strategy.rc (5471, 1998-11-25)
StrategyDlg.cpp (5964, 1998-11-25)
StrategyDlg.h (1647, 1998-11-25)

======================================================================== Readme.Txt - Strategy Classes ======================================================================== This file ( Readme.txt ) contains the following 1. About this application 2. File List 1. About this application ========================= This is a sample application accompanying my article "Applying Strategy Pattern in C++ Applications" In this application, the Strategy pattern is explained using a simple "Progress Indicator" example. Progress Indicators are used to indicate the progress of a lengthy operation by means of a filling. Application contains the following classes a ) CProgressIndicator - Progress indicator class derived from CWnd, playing the role of the Context as described in the article. b ) CFiller - Abstract filler class, playing the role of the Strategy. c ) CLToRFiller - Concrete Strategy, implementing left to right filling algorithm. d ) CRToLFiller - Concrete Strategy, implementing right to left filling algorithm. This application is developed using Visual C++ 5.0. This file contains a summary of what you will find in each of the files that make up your Strategy application. 2. File List ============ ///////////////////////////////////////////////////////////////////////////// Progress Indicator and Filler files: ProgInd.h, ProgInd.cpp - Progress indicator class definition and implementation. Filler.h, Filler.cpp - Filler class definition and implementation. ///////////////////////////////////////////////////////////////////////////// Application files: Strategy.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CStrategyApp application class. Strategy.cpp This is the main application source file that contains the application class CStrategyApp. Strategy.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Developer Studio. res\Strategy.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file Strategy.rc. res\Strategy.rc2 This file contains resources that are not edited by Microsoft Developer Studio. You should place all resources not editable by the resource editor in this file. Strategy.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. ///////////////////////////////////////////////////////////////////////////// AppWizard creates one dialog class: StrategyDlg.h, StrategyDlg.cpp - the dialog These files contain your CStrategyDlg class. This class defines the behavior of your application's main dialog. The dialog's template is in Strategy.rc, which can be edited in Microsoft Developer Studio. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named Strategy.pch and a precompiled types file named StdAfx.obj. Resource.h This is the standard header file, which defines new resource IDs. Microsoft Developer Studio reads and updates this file.

近期下载者

相关文件


收藏者