Docsity

Software Repository - Object Oriented Design - Project 3 | CSE 687, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE687 – Object Oriented Design S 2002
Project #3 – Software Repository due
Monday, April 08
Purpose:
The purpose of this project is to build a program that manages a structured set of files. The files will
be grouped into modules, programs, and systems:
A module is represented by a file, called a manifest, that contains the path1 to each of its source,
documentation, and test files. A module’s manifest may also refer to another module’s manifest
file if this module uses that module’s services.
A program is represented by a manifest file that contains paths to each of its modules and its
documentation and test files.
A system is represented by a manifest file that contains paths to each of its programs,
documentation, and test files.
All source code, documentation, and test files will be stored in directories named code, documentation,
and test, under a Repository directory. All module, program, and system manifests will reside in
module, program, and system directories, respectively.
Your REPOSITORY project will provide a base processing class that, given the name of a manifest,
scans that manifest and, recursively, all the manifests and files it refers to, performing some default
operation on them2. The base class will provide a protocol for derived classes to define application
specific processing on all the files encountered in a scan. Typical applications are display, checking
status, or building an executable.
You should provide a scanning module that uses a pointer to the base processing class to apply
processing actions to each file encountered on a scan. The scanning module should not have to know
the type of the processing object it points to, but simply apply its processing actions to every file.
Requirements:
Your REPOSITORY program:
1. shall compile and link from the command line, using VC++ 6.0, as provided in the ECS cluster and
operate in the environment provided there3.
2. shall provide an executive module that reads the name of a manifest and the type of operation to
be used and applies that operation to the named manifest and every manifest it refers to, either
directly or recursively. The operations shall include:
-display the name of each manifest’s component, e.g., system, program, or module name, and
the names of every file referred to by a manifest
-extract all the files associated with the named manifest, either directly or indirectly, to a
specified directory
-build a program or library file from all the files referred to by the named manifest either directly
or indirectly4
3. shall accept the name of a new manifest file to be created and allow the user to specify all of the
manifests and files it refers to.
4. shall be delivered with manifests and files that represent all the code you provide for your
REPOSITORY program.
1 The paths to use are specified below.
2 Note that, if we define a component as anything represented by a manifest, e.g., module, program, or system, then scanning is
just a process of walking the tree defined by all the component’s lower level components and files.
3 See notes on project submissions, handed out during the first class.
4 You will need to supply compile.bat and run.bat files or dsp file for each manifest so that this operation can be carried out. Of
course, the bat or dsp files should be referred to by the manifest.
pf2

Partial preview of the text

Download Software Repository - Object Oriented Design - Project 3 | CSE 687 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE687 – Object Oriented Design S 2002

Project #3 – Software Repository due

Monday, April 08

Purpose:

The purpose of this project is to build a program that manages a structured set of files. The files will be grouped into modules, programs, and systems:

 A module is represented by a file, called a manifest, that contains the path^1 to each of its source,

documentation, and test files. A module’s manifest may also refer to another module’s manifest file if this module uses that module’s services.

 A program is represented by a manifest file that contains paths to each of its modules and its

documentation and test files.  A system is represented by a manifest file that contains paths to each of its programs, documentation, and test files. All source code, documentation, and test files will be stored in directories named code, documentation, and test, under a Repository directory. All module, program, and system manifests will reside in module, program, and system directories, respectively. Your REPOSITORY project will provide a base processing class that, given the name of a manifest, scans that manifest and, recursively, all the manifests and files it refers to, performing some default operation on them^2. The base class will provide a protocol for derived classes to define application specific processing on all the files encountered in a scan. Typical applications are display, checking status, or building an executable. You should provide a scanning module that uses a pointer to the base processing class to apply processing actions to each file encountered on a scan. The scanning module should not have to know the type of the processing object it points to, but simply apply its processing actions to every file.

Requirements:

Your REPOSITORY program:

  1. shall compile and link from the command line, using VC++ 6.0, as provided in the ECS cluster and operate in the environment provided there^3.
  2. shall provide an executive module that reads the name of a manifest and the type of operation to be used and applies that operation to the named manifest and every manifest it refers to, either directly or recursively. The operations shall include:
    • display the name of each manifest’s component, e.g., system, program, or module name, and the names of every file referred to by a manifest
    • extract all the files associated with the named manifest, either directly or indirectly, to a specified directory
    • build a program or library file from all the files referred to by the named manifest either directly or indirectly^4
  3. shall accept the name of a new manifest file to be created and allow the user to specify all of the manifests and files it refers to.
  4. shall be delivered with manifests and files that represent all the code you provide for your REPOSITORY program. (^1) The paths to use are specified below. (^2) Note that, if we define a component as anything represented by a manifest, e.g., module, program, or system, then scanning is just a process of walking the tree defined by all the component’s lower level components and files. (^3) See notes on project submissions, handed out during the first class. (^4) You will need to supply compile.bat and run.bat files or dsp file for each manifest so that this operation can be carried out. Of course, the bat or dsp files should be referred to by the manifest.

CSE687 – Object Oriented Design S 2002

  1. shall provide the means for new operations, as in part 2, to be added to the REPOSITORY program without changing any of the existing modules you provide, except for the executive. That is, your server modules should satisfy the open/closed principle: they should be open for extension, but closed to modifications.