///////////////////////////////////////////////////////////////////// // FileMgr.cpp - Process the commandline to get specified files // // with file extension and speicifed path // // // // Language: Visual C++ 2012, update 1 // // Platform: Dell XPS 8300, Windows 7 // // Application: Prototype Helper for CSE687 Pr1, Sp13 // // Author: Zhicheng Zhao, computer sicence master student // // (315) 708-8279, zzhao13@syr.edu // ///////////////////////////////////////////////////////////////////// #include "FileMgr.h" #include ////////////////////////////////////////////////////////////////////////////////// //Function findAllfiles: get all the files with the path and store into the vector void FileMgr::findAllfiles(std::string path, std::string pattern,std::vector& filesContainer) { std::cout << "\n Processing file path " << path <<"looking for "< currfiles = Directory::getFiles(path,pattern); for(size_t i=0; i currdirs = Directory::getDirectories(path); for(size_t i=2; i-------------------------------------------------------- #ifdef TEST_FILEMGR #include void title(const std::string& title, char ch='=') { std::cout << "\n " << title; std::cout << "\n " << std::string(title.size()+2, ch); } int main(int argc, char* argv[]) { if(argc < 2) { std::cout << "\n please enter path to process on command line\n\n"; return 1; } std::vector allfiles; for(int i=1; i