本文整理汇总了C++中ossimFilename::contains方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimFilename::contains方法的具体用法?C++ ossimFilename::contains怎么用?C++ ossimFilename::contains使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimFilename
的用法示例。
在下文中一共展示了ossimFilename::contains方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: isIgnoredFile
bool isIgnoredFile(const ossimFilename& file)
{
bool status = false;
if (trace)
{
cout << "file: " << file << endl;
}
if ( file.size() )
{
ossimFilename f = file.file();
ossimFilename e = file.ext();
if ( ( f == ".moc" ) ||
( f == ".svn" ) ||
( f == "CMakeCache.txt" ) ||
( f == "CMakeFiles" ) ||
( f == "cmake_install.cmake" ) ||
( f == "cmake_uninstall.cmake" ) ||
( f == "CVS" ) ||
( f == "doc" ) ||
( f == ".cvsignore" ) ||
( f == "bin" ) ||
( f == "build" ) ||
( f == "builds" ) ||
( f == "configure") ||
( f == "config.log" ) ||
( f == "config.status") ||
( f == "lib" ) ||
( f == "Makefile" ) ||
( f == "Makefile.common" ) ||
( f == "make.out" ) ||
( f == "projects") ||
( f == "wxmac.icns") ||
( f == "xcode" ) ||
( e == "d" ) || // dot d file
( e == "o" ) || // object file
( e == "obj" ) ||
( e == "exe" ) ||
( e == "tmp" )
)
{
status = true;
}
else if ( file.contains("apps") || file.contains("test") )
{
if ( file.isDir() ) // Go into apps and test dir.
{
status = false;
}
else if ( (e != "h") && (e != "cpp") )
{
// Ignore binary files. Only diff headers and source files.
status = true;
}
}
if ( file[file.size()-1] == '~' )
{
status = true; // xemacs
}
} // if ( file.size() )
else
{
status = true; // empty
}
if ( trace && (status == true) )
{
cout << "ignoring file: " << file << endl;
}
return status;
}