本文整理汇总了C++中CKParameterManager::ParameterNameToGuid方法的典型用法代码示例。如果您正苦于以下问题:C++ CKParameterManager::ParameterNameToGuid方法的具体用法?C++ CKParameterManager::ParameterNameToGuid怎么用?C++ CKParameterManager::ParameterNameToGuid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKParameterManager
的用法示例。
在下文中一共展示了CKParameterManager::ParameterNameToGuid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/*
*******************************************************************
* Function: GetCI()
*
* Description : Virtools loads a composition, this function will create a CI by a chunk.
* Parameters : CKParameter *parameter, rw : the given parameter which want to be filled
CKStateChunk *source_chunk,r : member variables of the CI are loaded from here
* Returns : CGBLCOError = Ok, if everything is gone fine.
*
*******************************************************************
*/
CGBLCOError
IGBLCIAccessInterface::GetCI(CGBLCI*target,CGBLCIID idCI)
{
assert(target);
CGBLSMStorageManager *storageManager = static_cast<CGBLSMStorageManager *>(context->GetManagerByGuid(GBLSMStorageManagerGUID));
IGBLSMConfigurationAccess* smCIS = storageManager->GetConfigurationInterface();
int flags = 0 ;
XString name,value,defaultValue,description,type;
// get cis list
CGBLCOError returnValue = smCIS->RetrieveCI(&flags,&type,&value,&name,&description,&defaultValue,idCI);
if (returnValue == CGBLCOError::EGBLCOErrorType::GBLCO_OK)
{
target->name = name;
target->realValue = context->CreateCKParameterLocal("nullCI",type.Str());
target->realValue->SetStringValue(value.Str());
target->defaultValue = context->CreateCKParameterLocal("nullCIDF",type.Str());
target->defaultValue->SetStringValue(defaultValue.Str());
target->description = description;
target->flags = flags;
CKParameterManager *pm = context->GetParameterManager();
target->type = pm->ParameterNameToGuid(type.Str());
}
return returnValue;
}