Definition at line 1304 of file RgbDataSrcLavc_old.h. References Impala::FileNameLastPathSepPos(), Impala::FileNamePath(), Impala::FileNameTail(), Impala::Util::Database::GetFilePath(), ILOG_ERROR, Impala::Util::Database::MakeDir(), and Impala::StringReplaceAll(). 01305 { 01306 String infoName = ""; 01307 if (Link::DiskImage::DiskImageUsed()) 01308 { 01309 String subPath = FileNamePath(srcName); 01310 if (subPath.substr(0, 10) == "diskimage:") 01311 { 01312 int posAfterDiskImageFileName = subPath.find("://", 10); 01313 // SK: assume disk image file name is unique, 01314 // not needing an additional (sub-)path specification 01315 const String uptoDiskImageToken = 01316 subPath.substr(0, posAfterDiskImageFileName); 01317 int diskImageFileNamePos = 01318 FileNameLastPathSepPos(uptoDiskImageToken) + 1; 01319 if (diskImageFileNamePos == String::npos) 01320 ILOG_ERROR("Disk image file was expected to be prefixed " 01321 << "with a path: " << uptoDiskImageToken); 01322 01323 String subSubPath = 01324 subPath.substr(posAfterDiskImageFileName + 1); 01325 subSubPath = StringReplaceAll(subSubPath, 01326 "0x", "0x30x", false); 01327 subSubPath = StringReplaceAll(subSubPath, 01328 "//", "/0x2F", false); 01329 subSubPath = subSubPath.substr(0, subSubPath.size() - 1); 01330 subPath = subPath.substr(diskImageFileNamePos, 01331 posAfterDiskImageFileName-diskImageFileNamePos)+subSubPath; 01332 01333 String dir = "FramePosIndex/" + subPath; 01334 01335 bool toWrite = (mode == WRITEIDX); 01336 bool silent = (mode != READIDX); 01337 01338 if (toWrite) 01339 db->MakeDir(dir); 01340 01341 String fname = FileNameTail(srcName) + ".info"; 01342 infoName = db->GetFilePath(dir, fname, toWrite, silent); 01343 } 01344 else 01345 infoName = srcName + ".info"; 01346 } 01347 return infoName; 01348 }
Here is the call graph for this function:
|