Concatenate file names : returns fileName1/fileName2.
Used to handle weird cases, e.g. empty names.
Definition at line 130 of file FileName.h.
References StringEndsWith().
Referenced by Impala::Persistency::SimilarityTableSetRepositoryInFile::GetDir(), Impala::Persistency::Mpeg7DocRepositoryInFile::GetDir(), Impala::Persistency::LabelSetRepositoryInFile::GetDir(), Impala::Persistency::ImageRepositoryInFile::GetDir(), Impala::Persistency::ImageArchiveRepositoryInFile::GetDir(), Impala::Persistency::FrameRepositoryInFile::GetDir(), Impala::Persistency::FeatureTableRepositoryInFile::GetDir(), Impala::Persistency::FeatureListRepositoryInFile::GetDir(), Impala::Persistency::AnnotationTableRepositoryInFile::GetDir(), Impala::Persistency::FileSystem::GetFilePath(), Impala::Persistency::FileSystem::GetReadableFileLocal(), Impala::Core::VideoSet::VideoSet::GetResolvedVideoPath(), Impala::Core::VideoSet::VideoSet::GetVideo(), and Impala::Persistency::FileSystem::GetWritableFileLocal().
00131 {
00132 if (fileName1.empty())
00133 return fileName2;
00134 if (fileName2.empty())
00135 return fileName1;
00136 if (StringEndsWith(fileName1, "/"))
00137 return fileName1 + fileName2;
00138 return fileName1 + "/" + fileName2;
00139 }
Here is the call graph for this function: