本文整理汇总了C++中OsPath::Split方法的典型用法代码示例。如果您正苦于以下问题:C++ OsPath::Split方法的具体用法?C++ OsPath::Split怎么用?C++ OsPath::Split使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OsPath
的用法示例。
在下文中一共展示了OsPath::Split方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OsTask
ACDAudio::ACDAudio(ACDAudioManager* pAcdAudioManager,
const char* pName,
bool localStore,
const char* pAudioUriString,
const char* pDescription)
: OsTask("ACDAudio-%d"), mLock(OsMutex::Q_FIFO)
{
mpAcdAudioManager = pAcdAudioManager;
mName = pName;
mLocalStore = localStore;
mUri = pAudioUriString;
mUriString = pAudioUriString;
mDescription = pDescription;
mpAudioBuffer = NULL;
if (mLocalStore) {
// This audio is flagged as local-store
// Check to see if it has been fetched and stored locally
mAudioPath = mpAcdAudioManager->getAudioStorePath();
if (mAudioPath != NULL) {
// Valid audio store path, append the file
OsPath uriPath;
mUri.getPath(uriPath);
uriPath.Split();
mAudioPath += OsPath::separator;
mAudioPath += uriPath.getFilename();
mAudioPath += uriPath.getExt();
// Check to see if the file is already there
if (!OsFileSystem::exists(mAudioPath)) {
// No, attempt to download it
Os::Logger::instance().log(FAC_ACD, PRI_INFO, "ACDAudio::ACDAudio - starting download of: %s", mUriString.data());
start();
}
}
}
}