487 OrgDir = IRAD::Sys::CWD();
493 if(!IRAD::Sys::FILEEXISTS(DirName)){
494 std::cout <<
"GetInputData Error: Could not find data directory, "
495 << DirName <<
". Exiting (fail)." << std::endl;
501 std::string InFileName;
502 std::string OutFileName;
507 if(!IRAD::Sys::FILEEXISTS(TestDir)){
508 IntDir = IRAD::Sys::CreateDirectory(TestDir);
510 std::cout <<
"GetInputData Error: Could not make directory, "
511 << TestDir <<
". Exiting (fail)." << std::endl;
517 IRAD::Sys::Directory SourceDir(DirName);
520 IntDir = IRAD::Sys::ChDir(TestDir);
522 std::cout <<
"GetInputData Error: Could not change directories to "
523 << TestDir <<
". Exiting (fail)." << std::endl;
528 for(std::vector<std::string>::iterator it = SourceDir.begin();
529 it != SourceDir.end(); ++it){
530 InFileName = DirName +
"/" + *it;
533 bool isDir = IRAD::Sys::ISDIR(InFileName.c_str());
535 std::string dirSuffix = suffix +
"/" + *it;
536 std::string dirTestDir = TestDir +
"/" + *it;
541 std::cout <<
"GetInput failed at the recursive level"
547 Inf.open(InFileName.c_str());
548 OutFileName = IRAD::Sys::CWD() +
"/" + *it;
549 Ouf.open(OutFileName.c_str());
556 IntDir = IRAD::Sys::ChDir(OrgDir);
558 std::cout <<
"GetInputData Error: Could not change directories to "
559 << OrgDir <<
". Exiting (fail)." << std::endl;
virtual int GetInputData(std::string suffix, std::string TestDir)
std::string SourceDirPath