本文整理汇总了C++中ossimFilename::fileNoExtension方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimFilename::fileNoExtension方法的具体用法?C++ ossimFilename::fileNoExtension怎么用?C++ ossimFilename::fileNoExtension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimFilename
的用法示例。
在下文中一共展示了ossimFilename::fileNoExtension方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: findErsLeader
ossimFilename ossimErsSarModel::findErsLeader(const ossimFilename& file) const
{
ossimFilename leaFile = file;
ossimString datString("DAT_01");
ossimString nulString("NUL_DAT");
ossimString vdfString("VDF_DAT");
ossimString leaString("LEA_01");
if ((file.fileNoExtension() == datString)
|| (file.fileNoExtension() == nulString)
|| (file.fileNoExtension() == leaString))
{
leaFile.setFile(leaString);
if (leaFile.exists())
{
return leaFile;
}
}
return file;
}
示例2: ossimString
QuickbirdRpcModel::QuickbirdRpcModel(const ossimFilename& imgFileName)
{
m_imageFileName = imgFileName;
// 结果文件名
m_resultName = imgFileName.fileNoExtension();
vector<ossimString> strList = ossimString(m_resultName).split('-');
if(3 == strList.size())
{
m_resultName = strList[0] + "-" + strList[2];
}
if(init(m_imageFileName))
{
m_bInitState = true;
}
}
示例3: findCoarseGrid
void ossimSensorModelFactory::findCoarseGrid(ossimFilename& result,
const ossimFilename& geomFile)const
{
result = geomFile;
result.setFile(result.fileNoExtension()+"_ocg");
result.setExtension("dat");
if(!result.exists())
{
result = geomFile;
result.setExtension("dat");
}
// let's find a .dat file in the current directory
//
if(!result.exists())
{
result = "";
ossimDirectory directoryList(geomFile.path());
ossimFilename file;
if(directoryList.getFirst(file,
ossimDirectory::OSSIM_DIR_FILES))
{
ossimString testString = "OSSIM_DBL_GRID";
char tempBuf[14];
do
{
if(file.ext().downcase() == "dat")
{
std::ifstream in(file.c_str());
if(in)
{
in.read((char*)tempBuf, 14);
in.close();
if(ossimString(tempBuf, tempBuf+14) == testString)
{
result = file;
}
}
}
}while((directoryList.getNext(file))&&(result == ""));
}
// try to find it
}
}