Docsity

CSE775 Project 1: HTML Documenter - Prof. James Fawcett, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE775 – Distributed Objects S 2003
Project #1 – HTML Documenter due
Monday, Feb 3
Purpose:
This project requires you to build a program, usi ng C OM components, that accepts a path and a set of file
patterns on the command line, searches the directory tree rooted at that path, and generates an HTML page
for each directory containing links to each of the files in that directory that match the pattern(s) 1. Each link
entry should have a text description. You program will provide some nominal description as a placeholder
for latter editing by the user.
Some of the page contents might look like the following:
Design.doc 2
description goes here
Exec.cpp description goes here
This output has probably been positioned with an HTML table, and the HTML page is easily edited to provide
useful descriptions for the directory contents.
Your program should deposit each HTML page in the directory it represents, and should provide a link to
both its predecessor and successor.
Requirements:
Your HTMLDoc program:
1. shall use standard C++3 and the standard library, compile and link from the command line, using
VC++ 7.0, as provided in the ECS clusters and operate in the environment provided there4.
2. shall use services of the C++ iostream library for all input and output to and from the user’s
console and C++ operator new and delete for all dynmic memory management, if you use any.
3. shall accept, from the command line, a path name to begin searching for files, and a set of one or
more file name patterns.
4. shall create a set of HTML pages, one for each directory visited, that provide contents as described
in the purpose section.
5. shall consist of COM components that represent at least the follow ing: HTML element 5 and HTML
document6, command line pattern matching, and directory navigation. You are encouraged to
define other components as well.
6. The HTMLDoc program shall provide at least the following modules:
a. a module to package HTML generation7, implemented as COM component
b. a module to support directory navigation, implemented as COM component
c. an executive module that supports the handling of files and display either directly, or
indirectly through the use of helper modules.
1 Typical patterns are *.h, *.cpp, *.doc, *.ppt. Your processing should accept any file
pattern, however.
2 The underline indicates a hyperlink to the cited file.
3 This means, for example that you may not use the .Net managed extensions to C++.
4 VC++ ver 7.0 is Visual Studio .Net and is available in all but the CST 2-122 cluster.
5 An HTML element consists of an opening tag, body, and closing tag, like this:
<a href=”somePage.htm”>somePage</a>.
6 The document class is responsible for handling an html page.
7 You will find the web links provided o n the WebDe v page in our web site helpful for this
task.

Partial preview of the text

Download CSE775 Project 1: HTML Documenter - Prof. James Fawcett and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE775 – Distributed Objects S 2003

Project #1 – HTML Documenter due

Monday, Feb 3

Purpose:

This project requires you to build a program, using COM components, that accepts a path and a set of file patterns on the command line, searches the directory tree rooted at that path, and generates an HTML page for each directory containing links to each of the files in that directory that match the pattern(s) 1. Each link entry should have a text description. You program will provide some nominal description as a placeholder for latter editing by the user. Some of the page contents might look like the following: Design.doc^2 description goes here Exec.cpp description goes here This output has probably been positioned with an HTML table, and the HTML page is easily edited to provide useful descriptions for the directory contents. Your program should deposit each HTML page in the directory it represents, and should provide a link to both its predecessor and successor.

Requirements:

Your HTMLDoc program:

  1. shall use standard C++^3 and the standard library, compile and link from the command line, using VC++ 7.0, as provided in the ECS clusters and operate in the environment provided there^4.
  2. shall use services of the C++ iostream library for all input and output to and from the user’s console and C++ operator new and delete for all dynmic memory management, if you use any.
  3. shall accept, from the command line, a path name to begin searching for files, and a set of one or more file name patterns.
  4. shall create a set of HTML pages, one for each directory visited, that provide contents as described in the purpose section.
  5. shall consist of COM components that represent at least the following: HTML element 5 and HTML document^6 , command line pattern matching, and directory navigation. You are encouraged to define other components as well.
  6. The HTMLDoc program shall provide at least the following modules: a. a module to package HTML generation^7 , implemented as COM component b. a module to support directory navigation, implemented as COM component c. an executive module that supports the handling of files and display either directly, or indirectly through the use of helper modules. (^1) Typical patterns are *.h, *.cpp, *.doc, *.ppt. Your processing should accept any file pattern, however. (^2) The underline indicates a hyperlink to the cited file. (^3) This means, for example that you may not use the .Net managed extensions to C++. (^4) VC++ ver 7.0 is Visual Studio .Net and is available in all but the CST 2-122 cluster. (^5) An HTML element consists of an opening tag, body, and closing tag, like this: somePage. (^6) The document class is responsible for handling an html page. (^7) You will find the web links provided on the WebDev page in our web site helpful for this task.