void consoleOutPortRefInfo(PortService_ptr portRef) { if(portRef->_is_nil() ){ std::cout << "portRef is nill" << std::endl; } else { std::cout << "Print RTC::PortService_var info" << std::endl; std::string spcStr(" "); std::cout << "_PD_repoId: " << portRef->_PD_repoId << std::endl; ConnectorProfileList_var profileList = portRef->get_connector_profiles(); for(_CORBA_ULong i = _CORBA_ULong(0); i < profileList->length(); ++i){ ConnectorProfile& localConPro = profileList[i]; std::cout << "ConnectorProfileList[" << i << "]" << std::endl; std::cout << spcStr << "name: " << localConPro.name << std::endl; std::cout << spcStr << "connector_id: " << localConPro.connector_id << std::endl; std::cout << spcStr << "properties: " << std::endl; std::cout << ::NVUtil::toString(localConPro.properties) << std::endl; PortServiceList& portServiceList = localConPro.ports; for(_CORBA_ULong h = _CORBA_ULong(0); h < portServiceList.length(); ++h){ std::string spcStr2 = spcStr; spcStr2 += spcStr; std::cout << spcStr << "ports[" << h << "]" << std::endl; std::cout << spcStr2 << "in()->_is_nil(): " << (portServiceList[h].in()->_is_nil() ? "true" : "false" ) << std::endl; std::cout << spcStr2 << "inout()->_is_nil(): " << (portServiceList[h].inout()->_is_nil() ? "true" : "false" ) << std::endl; std::cout << spcStr2 << "out()->_is_nil(): " << (portServiceList[h].out()->_is_nil() ? "true" : "false" ) << std::endl; } } } }