MCPcopy Create free account
hub / github.com/bluescan/tacentview / MakeImportedFilename

Method MakeImportedFilename

Src/ImportRaw.cpp:633–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631
632
633tString ImportRaw::MakeImportedFilename(tSystem::tFileType destType, const tString& rawFile)
634{
635 tString dir = tSystem::tGetDir(rawFile);
636 tString base = tSystem::tGetFileBaseName(rawFile);
637 tString filename;
638 int attempt = 0;
639 do
640 {
641 tsPrintf
642 (
643 filename, "%s%s_Imported_%02d.%s",
644 Viewer::ImagesDir.Chr(),
645 base.Chr(),
646 attempt,
647 tGetExtension(destType).Chr()
648 );
649 attempt++;
650 } while (tSystem::tFileExists(filename) && (attempt < 100));
651
652 return filename;
653}
654
655
656bool ImportRaw::CreateImportedFile(tList<tFrame>& frames, const tString& filename)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected