本文整理汇总了C++中PDSLH_CPE_CONTROLLER_OBJECT::GetInterfaceByName方法的典型用法代码示例。如果您正苦于以下问题:C++ PDSLH_CPE_CONTROLLER_OBJECT::GetInterfaceByName方法的具体用法?C++ PDSLH_CPE_CONTROLLER_OBJECT::GetInterfaceByName怎么用?C++ PDSLH_CPE_CONTROLLER_OBJECT::GetInterfaceByName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDSLH_CPE_CONTROLLER_OBJECT
的用法示例。
在下文中一共展示了PDSLH_CPE_CONTROLLER_OBJECT::GetInterfaceByName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AnscTrace
ANSC_STATUS
DslhDmagntEngage
(
ANSC_HANDLE hThisObject
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PDSLH_DATAMODEL_AGENT_OBJECT pMyObject = (PDSLH_DATAMODEL_AGENT_OBJECT)hThisObject;
PANSC_ATOM_TABLE_OBJECT pAtomFunctions = (PANSC_ATOM_TABLE_OBJECT)pMyObject->hAtomFunctions;
PDSLH_CPE_CONTROLLER_OBJECT pDslhCpeController = (PDSLH_CPE_CONTROLLER_OBJECT)pMyObject->hDslhCpeController;
PSLAP_OBJECT_DESCRIPTOR pObjDescriptor = (PSLAP_OBJECT_DESCRIPTOR )NULL;
PPOAM_IREP_FOLDER_OBJECT pPoamIrepFoRoot = (PPOAM_IREP_FOLDER_OBJECT )NULL;
PPOAM_IREP_FOLDER_OBJECT pPoamIrepFoProvision = (PPOAM_IREP_FOLDER_OBJECT )NULL;
PPOAM_IREP_FOLDER_OBJECT pPoamIrepFoCOSA = (PPOAM_IREP_FOLDER_OBJECT )pMyObject->hIrepFolderCOSA;
PDSLH_MWS_INTERFACE pDslhMwsIf = (PDSLH_MWS_INTERFACE )pMyObject->hDslhMwsIf;
if ( pMyObject->bActive )
{
return ANSC_STATUS_SUCCESS;
}
if( pDslhMwsIf != NULL)
{
pDslhCpeController->AddInterface(pDslhCpeController, pMyObject->hDslhMwsIf);
}
pMyObject->hDslhCcdIf = pDslhCpeController->GetInterfaceByName(pDslhCpeController, CCSP_CCD_INTERFACE_NAME);
pMyObject->hDslhLcbIf = pDslhCpeController->GetInterfaceByName(pDslhCpeController, CCSP_LIBCBK_INTERFACE_NAME);
/* register internal apis */
if( pAtomFunctions == NULL)
{
pMyObject->hAtomFunctions =
AnscCreateAtomTable
(
pMyObject->hContainerContext,
(ANSC_HANDLE)pMyObject,
NULL
);
pAtomFunctions = (PANSC_ATOM_TABLE_OBJECT)pMyObject->hAtomFunctions;
}
if( pAtomFunctions != NULL)
{
/* Register the API exported by framework */
pMyObject->RegisterInternalApi(pMyObject, "COSANotifyValueChange", COSANotifyValueChange);
pMyObject->RegisterInternalApi(pMyObject, "COSANotifyDiagComplete", COSANotifyDiagComplete);
pMyObject->RegisterInternalApi(pMyObject, "COSAValidateHierarchyInterface", COSAValidateHierarchyInterface);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValueBool", COSAGetParamValueBool);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValueInt", COSAGetParamValueInt);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValueUlong", COSAGetParamValueUlong);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValueString", COSAGetParamValueString);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValue", COSAGetParamValue);
pMyObject->RegisterInternalApi(pMyObject, "COSASetParamValueBool", COSASetParamValueBool);
pMyObject->RegisterInternalApi(pMyObject, "COSASetParamValueInt", COSASetParamValueInt);
pMyObject->RegisterInternalApi(pMyObject, "COSASetParamValueUlong", COSASetParamValueUlong);
pMyObject->RegisterInternalApi(pMyObject, "COSASetParamValueString", COSASetParamValueString);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetRegistryRootFolder", COSAGetRegistryRootFolder);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetInstanceNumberByIndex", COSAGetInstanceNumberByIndex);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetInterfaceByName", COSAGetInterfaceByName);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetMessageBusHandle", COSAGetMessageBusHandle);
pMyObject->RegisterInternalApi(pMyObject, "COSARegisterCallBackAfterInitDml", COSARegisterCallBackAfterInitDml);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetSubsystemPrefix", COSAGetSubsystemPrefix);
pMyObject->RegisterInternalApi(pMyObject, "COSARepopulateTable", COSARepopulateTable);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetParamValueByPathName", COSAGetParamValueByPathName);
pMyObject->RegisterInternalApi(pMyObject, "COSASetParamValueByPathName", COSASetParamValueByPathName);
pMyObject->RegisterInternalApi(pMyObject, "COSAGetInstanceNumbers", COSAGetInstanceNumbers);
/* Register the API for CCSP Common Components*/
#if 0
pMyObject->RegisterInternalApi(pMyObject, "CcspComp_GetParamUlongValue", CcspComp_GetParamUlongValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspComp_GetParamStringValue", CcspComp_GetParamStringValue);
#endif
pMyObject->RegisterInternalApi(pMyObject, "CcspComp_GetBulkParamValues", CcspComp_GetBulkParamValues);
pMyObject->RegisterInternalApi(pMyObject, "CcspComp_SetParamBoolValue", CcspComp_SetParamBoolValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_GetParamBoolValue", CcspLog_GetParamBoolValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_GetParamUlongValue", CcspLog_GetParamUlongValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_SetParamBoolValue", CcspLog_SetParamBoolValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_SetParamUlongValue", CcspLog_SetParamUlongValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_Validate", CcspLog_Validate );
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_Commit", CcspLog_Commit );
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_Rollback", CcspLog_Rollback );
pMyObject->RegisterInternalApi(pMyObject, "CcspMem_GetParamUlongValue", CcspMem_GetParamUlongValue);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_GetBulkParamValues", CcspLog_GetBulkParamValues);
pMyObject->RegisterInternalApi(pMyObject, "CcspLog_SetBulkParamValues", CcspLog_SetBulkParamValues);
}
/*
* Enroll and create PoamIrepFolder object.
*/
if ( TRUE )
{
pPoamIrepFoRoot =
(PPOAM_IREP_FOLDER_OBJECT)PoamIrepFoCreate(NULL, NULL, "");
//.........这里部分代码省略.........
示例2: AnscTraceError
ANSC_STATUS
DslhVarroNotifyValueChanged
(
ANSC_HANDLE hThisObject
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PDSLH_VAR_RECORD_OBJECT pMyObject = (PDSLH_VAR_RECORD_OBJECT )hThisObject;
PDSLH_OBJ_RECORD_OBJECT pObjRecord = (PDSLH_OBJ_RECORD_OBJECT )pMyObject->hDslhObjRecord;
PDSLH_CPE_CONTROLLER_OBJECT pDslhCpeController = (PDSLH_CPE_CONTROLLER_OBJECT )pObjRecord->hDslhCpeController;
PCCC_MBI_INTERFACE pDslhMbiIf = (PCCC_MBI_INTERFACE )pDslhCpeController->GetInterfaceByName((ANSC_HANDLE)pDslhCpeController, CCC_MBI_INTERFACE_NAME);
PDSLH_VAR_ENTITY_OBJECT pVarEntity = (PDSLH_VAR_ENTITY_OBJECT )pMyObject->hDslhVarEntity;
PSLAP_VARIABLE pNewValue = (PSLAP_VARIABLE )NULL;
char* pParamFullName = NULL;
char* pAccessList = NULL;
if ( !pDslhMbiIf )
{
AnscTraceError(("DslhVarroNotifyValueChanged: pDslhMbiIf is NULL\n"));
return ANSC_STATUS_FAILURE;
}
pParamFullName = pMyObject->GetFullName((ANSC_HANDLE)pMyObject);
if ( pMyObject->TempParamValue )
{
SlapAllocVariable(pNewValue);
if ( !pNewValue )
{
returnStatus = ANSC_STATUS_RESOURCES;
return returnStatus;
}
SlapCloneVariable(pMyObject->TempParamValue, pNewValue);
}
else
{
/* New value has to be present all the time. Get current value */
pNewValue = pMyObject->GetValue((ANSC_HANDLE)pMyObject);
}
if(pNewValue != NULL)
{
pNewValue->ReqSenderID = pMyObject->ReqSenderID;
}
pAccessList = AnscCloneString(pMyObject->AccessList);
returnStatus =
pDslhMbiIf->SendParameterValueChangeSignal
(
(void*)pDslhMbiIf->hOwnerContext,
pParamFullName,
pMyObject->OldParamValue,
pNewValue,
pAccessList
);
if ( pNewValue )
{
SlapFreeVariable(pNewValue);
}
if ( pParamFullName )
{
AnscFreeMemory(pParamFullName);
}
if ( pAccessList )
{
AnscFreeMemory(pAccessList);
}
return returnStatus;
}