Download ModelMaker: A Tool for Rapid Modeling from Device Descriptions

Transcript
Chapter 4: ModelMaker Basic Design
PrologFinder.cpp & PrologFinder.h: These files house the CPrologFinder class.
Similar to the CInitiator class, this class is inherited from the CDialog class of the
Microsoft Foundation Class. An object of this class is used by ModelMaker to prompt
the user for the location of the SWI Prolog executable file. Once the SWI Prolog
executable is found, ModelMaker generates a log file in the local directory that contains
the location information for that file. For the next ModelMaker invocation, it will use the
information contained in this file instead of creating another object from this
CPrologFinder class.
Specification.cpp & Specification.h: These files house the main ANSI C++
classes for the specification document reader, CSpecification. This CSpecification class
is responsible for loading the specification document with a correct document hierarchy,
extracting the keywords out of the specification document, and performing any other
operations that deal with the specification document data structure. The other important
class in these files is the CElement class. The CSpecification class uses a CElement class
for each of its structural elements. The possible CSpecification elements are section,
paragraph, and sentence. More details on these elements and the CSpecification class are
presented in the CSpecification Class section (4.3.1.1).
StatusBox.cpp & StatusBox.h: These files contain the CStatusBox class. This
class is inherited from the CDialog class of the Microsoft Foundation Class. An object of
this class is invoked by ModelMaker only to give feedback to the user about its
processing status.
StdAfx.cpp & StdAfx.h: These files are Microsoft Visual C++ specific files. They
are used to connect the application to the standard Microsoft Foundation Class library.
Resource.h: This file is a Microsoft Visual C++ specific file. It is used to define
all of the “include” lines for the application and to specify all of the other symbol
definitions needed for the application.
48