本文整理汇总了C++中DeviceManager::AreThesePortsOnPartneredNacs方法的典型用法代码示例。如果您正苦于以下问题:C++ DeviceManager::AreThesePortsOnPartneredNacs方法的具体用法?C++ DeviceManager::AreThesePortsOnPartneredNacs怎么用?C++ DeviceManager::AreThesePortsOnPartneredNacs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DeviceManager
的用法示例。
在下文中一共展示了DeviceManager::AreThesePortsOnPartneredNacs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetManager
bool
RedundantDataPath::IsAValidConfiguration( U32 &errorString ){
// the connection # check
if( (GetChildCount() > 2) || (GetChildCount() < 1 ) ){
errorString = CTS_SSAPI_CM_INVALID_CONN_COUNT_FOR_RDP;
return false;
}
// must belong to the same host
HostManager *pHM = (HostManager *)GetObjectManager( GetManager(), SSAPI_MANAGER_CLASS_TYPE_HOST_MANAGER );
if( !pHM->DoConnectionsBelongToSameHost( m_children ) ){
errorString = CTS_SSAPI_CM_CONN_MUST_BELONG_2_SAME_HOST;
return false;
}
// must map to a single primary/fail-over IOP pair
if( GetChildCount() == 2 ){
DeviceManager *pDM = (DeviceManager *)GetObjectManager(GetManager(), SSAPI_MANAGER_CLASS_TYPE_DEVICE_MANAGER );
ConnectionManager *pCM = (ConnectionManager *)GetManager();
DesignatorId id1 = GetChildIdAt( 0 ), id2 = GetChildIdAt( 1 );
id1 = ((ConnectionBase *)pCM->GetManagedObject( &id1 ))->GetGeminiPortId();
id2 = ((ConnectionBase *)pCM->GetManagedObject( &id2 ))->GetGeminiPortId();
if( !pDM->AreThesePortsOnPartneredNacs( id1, id2 ) ){
errorString = CTS_SSAPI_CM_CONN_MUST_BE_ON_PARTNER_NACS;
return false;
}
}
// we made it to here? Gee, it's good then!!!
return true;
}