Returns an user-specified temporary storage path, or the current folder if none specified. The returned path does *not* end in a / or \. Definition at line 14 of file FileNameTmp.h. References Impala::CmdOptions::GetInstance(), and Impala::CmdOptions::GetString(). Referenced by FileNameTmp(), Impala::Core::ImageSet::InterestPointProc::HandleDoneDir(), Impala::Core::VideoSet::InterestPointProc::HandleDoneFile(), Impala::Core::ImageSet::InterestPointProc::HandleNewFile(), and Impala::Core::VideoSet::InterestPointProc::HandleNewFrame(). 00015 { 00016 static String tempFolder("*"); 00017 if(tempFolder == "*") 00018 { 00019 CmdOptions& options = CmdOptions::GetInstance(); 00020 tempFolder = options.GetString("tmpPath"); 00021 if(!tempFolder.empty()) 00022 { 00023 if((tempFolder[tempFolder.size()-1] == '/') || 00024 (tempFolder[tempFolder.size()-1] == '\\')) 00025 { 00026 tempFolder = tempFolder.substr(0, tempFolder.size() - 1); 00027 } 00028 // if you are on Windows, then the path should just exist already 00029 // on *nix, we try to make the path for the user 00030 #ifdef unix 00031 String cmd = "mkdir -p " + tempFolder; 00032 system(cmd.c_str()); 00033 #endif 00034 } 00035 } 00036 return tempFolder; 00037 }
Here is the call graph for this function:
|