
//////////////////////////////////////////////////////////////////
//  storRef.cs		  - is responseible for handling the		//
//                    prepended file name and file structure	//
//  Language:         Visual C#, ver 7                          //
//  Platform:         AMD Duron, Windows 2000 SP2               //
//  Application:      CSE784 Final Project "Foundry", Fall 2002 //
//                    Syracuse University                       //
//  Author:           Tsung Shin Jei, (315) 4427250             //
//                    460 slocum height APT.7                   //
//                    Syracuse, NY  13210                       //
//  E-Mail            jasonsjt@hotmail.com                      //
//////////////////////////////////////////////////////////////////
/*
	Module Operations
	=================
	review the manifest and remove the prepended names and
	store all the referenced file into the sub directory
	named after the manifest name.
	the module also allow user to delete the directory and content
	it just created.
*/
//////////////////////////////////////////////////////////////////
//  Build Process                                               //
//////////////////////////////////////////////////////////////////
//  Required Files:                                             //
//						                                        //
//   storRef.cs                                                 //
//  Compiler Command:                                           //
//																//
//////////////////////////////////////////////////////////////////
/*
Maintenance History
=====================
ver 1.0 : 11 Nov 02
-first release

	1.1 11/18
	Author: Tsung Shin Jei Jasonsjt@hotmail.com

	This class is to read the files from the manifest and store all its referenced files 
	into the subdirectory named by it's manifest name.(without file extension) 
	
	If there is no any prepended names, simply copy into its subdirectory without rename.
	
	Each manifest will have a subdirectory with all its refered file stored in it.
	
	2.0 11/19
	New argument, Need to assign the (bool)quiet in the constructor if the quiet is true,
	only error will be displayed.
	
	Now the program need to call stor() to start the procedure. 
	Example:
	the land.mod.xml is the manifest name, d\\fs is the directory, and it will print all message and errors.
	storRef sr=new storRef("land.mod.xml","d:\\fs2",false);
	sr.store();
	
	This program restores the currentDirectory as it's origional path--It was a bug now fixed. :P

	Now support deleting all the directory created by this program. call deleteDir()

	Please refer to the main function further information.
	
	3.0 12/1
	The module copy the referenced file with its prepended file name and it's origional
	file name into the subdirectory:
	EX: AA__AA.jpg -> AA__AA.jpg and AA.jpg
	
	There is no prepended attributes in the manifest.
	
	The module check for the "__" to determine the prepended or not.
*/
