Docsity

CSE687 Project 3 - File Extractor: OOD in C++ with Win32 Sockets and XML - Prof. James Faw, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE687 - Object Oriented Design
Spring 2007
Project #3 – File Extractor due
Friday, April 09
Ver 2 – extended due date, modified requirements #3 and #6
Purpose:
Analysis tools, used in professional environments, often have to deal with hundreds or even
thousands of files, possibly distributed across several machines according to some complex
strategy. The purpose of this project is to manage the delivery of files, in this type of
environment, for analysis by some other tool.
This project requires you to develop a C++ program to copy a set of specified files from one or
more directory subtrees to a destination, which may be on the same, or another, machine. The
destination may be a single directory, or a directory subtree. The source and destination
directory structures are to be defined in XML files, accessible to the File Extractor program. The
allocation of files to a destination directory subtree will be based on file patterns.
This project will need the services of a communication component, which we will base on Win32
sockets, using XML messages. You are encouraged to build a class or classes that encapsulate
this communication functionality. Since some types of analysis may take binary files as inputs,
you may not assume that the files to be transferred are text files1.
Requirements:
Your EXTRACTOR program:
1. shall use standard C++2 and the standard library, compile and link from the command line,
using VC++ 8.0, as provided in the ECS clusters and operate in the environment provided
there3.
2. shall use services of the C++ iostream library for all input and output to and from the user’s
console4 and C++ operator new and delete for all dynamic memory management, if you use
any.
3. shall provide the capability to copy a set of files from some source directory subtree to a
destination subtree that may or may not be on the same machine. This facility shall be
based on Win32 sockets and use XML-based message-passing communication. You are
encouraged to encapsulate this functionality in one or more classes. For purposes of
demonstration all copies shall be to directories under C:\temp. Your XML language, however,
should not be limited to that. Just make sure that all destination paths, specified in your XML
file(s) are within or beneath C:\temp.
4. shall determine the source file set and structure and destination structure based on
specifications provided by XML files. The design of this file specification is part of your design
1 This implies the need for binary to text conversion, since the messages are formatted as XML. You will
find a base64 conversion facility in the class code directory that will help you with this functionality.
2 This means, for example that you may not use the .Net managed extensions to C++.
3 VC++ version 8.0 is provided by Visual Studio .Net 2005, and is available in all the ECS clusters.
4 You may use a WinForm interface, but are not required to do so. For that part, only, you may use
managed C++ code.
pf2

Partial preview of the text

Download CSE687 Project 3 - File Extractor: OOD in C++ with Win32 Sockets and XML - Prof. James Faw and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE687 - Object Oriented Design

Spring 2007

Project #3 – File Extractor due

Friday, April 09

Ver 2 – extended due date, modified requirements #3 and #

Purpose:

Analysis tools, used in professional environments, often have to deal with hundreds or even thousands of files, possibly distributed across several machines according to some complex strategy. The purpose of this project is to manage the delivery of files, in this type of environment, for analysis by some other tool. This project requires you to develop a C++ program to copy a set of specified files from one or more directory subtrees to a destination, which may be on the same, or another, machine. The destination may be a single directory, or a directory subtree. The source and destination directory structures are to be defined in XML files, accessible to the File Extractor program. The allocation of files to a destination directory subtree will be based on file patterns. This project will need the services of a communication component, which we will base on Win sockets, using XML messages. You are encouraged to build a class or classes that encapsulate this communication functionality. Since some types of analysis may take binary files as inputs, you may not assume that the files to be transferred are text files^1.

Requirements:

Your EXTRACTOR program:

  1. shall use standard C++^2 and the standard library, compile and link from the command line, using VC++ 8.0, as provided in the ECS clusters and operate in the environment provided there^3.
  2. shall use services of the C++ iostream library for all input and output to and from the user’s console^4 and C++ operator new and delete for all dynamic memory management, if you use any.
  3. shall provide the capability to copy a set of files from some source directory subtree to a destination subtree that may or may not be on the same machine. This facility shall be based on Win32 sockets and use XML-based message-passing communication. You are encouraged to encapsulate this functionality in one or more classes. For purposes of demonstration all copies shall be to directories under C:\temp. Your XML language, however, should not be limited to that. Just make sure that all destination paths, specified in your XML file(s) are within or beneath C:\temp.
  4. shall determine the source file set and structure and destination structure based on specifications provided by XML files. The design of this file specification is part of your design (^1) This implies the need for binary to text conversion, since the messages are formatted as XML. You will find a base64 conversion facility in the class code directory that will help you with this functionality. (^2) This means, for example that you may not use the .Net managed extensions to C++. (^3) VC++ version 8.0 is provided by Visual Studio .Net 2005, and is available in all the ECS clusters. (^4) You may use a WinForm interface, but are not required to do so. For that part, only, you may use managed C++ code.

CSE687 - Object Oriented Design

Spring 2007

task for this project^5.

  1. shall provide an executive that demonstrates that your project meets the requirements of this statement.
  2. Part of this demonstration shall be to copy the project subtree between two different paths, specified by the user. All file copies shall be to directories under C:\temp. Note that there is no requirement to provide a graphical user interface. If you do so, you should also provide a command line interface, as required in #5. Please demonstrate that you meet all of the requirements, stated above. (^5) A useful model for the design of this facility is an open-source project that implements a large program with hundreds of modules for several different platforms. Some of this code will be common to all implementations, but some will not. The extractor might be used to configure a release build for one platform.