Definition at line 81 of file Mpeg7DocRepositoryInFile.h. References Impala::FileNameConcat(), Impala::Persistency::Mpeg7DocLocator::GetContainer(), Impala::Persistency::Mpeg7DocLocator::GetDocType(), ILOG_ERROR, Impala::Persistency::Mpeg7DocLocator::MPEG7_ANNOTATION, Impala::Persistency::Mpeg7DocLocator::MPEG7_CONCEPT, Impala::Persistency::Mpeg7DocLocator::MPEG7_FEATURE, Impala::Persistency::Mpeg7DocLocator::MPEG7_PLAIN, and Impala::Persistency::Mpeg7DocLocator::MPEG7_SHOT. Referenced by Add(), Delete(), Exists(), and Get(). 00082 { 00083 String dir("unknown"); 00084 if (loc.GetDocType() == Mpeg7DocLocator::MPEG7_PLAIN) 00085 dir = ""; 00086 else if (loc.GetDocType() == Mpeg7DocLocator::MPEG7_SHOT) 00087 dir = "MetaData/shots/"; 00088 else if (loc.GetDocType() == Mpeg7DocLocator::MPEG7_CONCEPT) 00089 dir = "MetaData/similarities/"; 00090 else if (loc.GetDocType() == Mpeg7DocLocator::MPEG7_ANNOTATION) 00091 dir = "MetaData/annotations/"; 00092 else if (loc.GetDocType() == Mpeg7DocLocator::MPEG7_FEATURE) 00093 dir = "MetaData/features/"; 00094 else 00095 ILOG_ERROR("GetDir: unknown type in locator"); 00096 00097 if (forAll) 00098 return dir; 00099 00100 dir = FileNameConcat(dir, loc.GetContainer()); 00101 return dir; 00102 }
Here is the call graph for this function: ![]()
|