[openrtm-commit:00063] r2099 - trunk/OpenRTM-aist/utils/rtc-template

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 5月 21日 (土) 16:03:12 JST


Author: n-ando
Date: 2011-05-21 16:03:11 +0900 (Sat, 21 May 2011)
New Revision: 2099

Modified:
   trunk/OpenRTM-aist/utils/rtc-template/cxx_gen.py
Log:
PortList in the commented-out code has been changed into PortServiceList.
Indentation has been modified. refs #2123


Modified: trunk/OpenRTM-aist/utils/rtc-template/cxx_gen.py
===================================================================
--- trunk/OpenRTM-aist/utils/rtc-template/cxx_gen.py	2011-05-18 09:39:16 UTC (rev 2098)
+++ trunk/OpenRTM-aist/utils/rtc-template/cxx_gen.py	2011-05-21 07:03:11 UTC (rev 2099)
@@ -326,40 +326,40 @@
   // These should not be in this function.
 
   // Get the component's object reference
-//  RTC::RTObject_var rtobj;
-//  rtobj = RTC::RTObject::_narrow(manager->getPOA()->servant_to_reference(comp));
+  //  RTC::RTObject_var rtobj;
+  //  rtobj = RTC::RTObject::_narrow(manager->getPOA()->servant_to_reference(comp));
 
   // Get the port list of the component
-//  PortList* portlist;
-//  portlist = rtobj->get_ports();
+  // PortServiceList* portlist;
+  // portlist = rtobj->get_ports();
 
   // getting port profiles
-//  std::cout << "Number of Ports: ";
-//  std::cout << portlist->length() << std::endl << std::endl; 
-//  for (CORBA::ULong i(0), n(portlist->length()); i < n; ++i)
-//  {
-//    Port_ptr port;
-//    port = (*portlist)[[]i];
-//    std::cout << "Port" << i << " (name): ";
-//    std::cout << port->get_port_profile()->name << std::endl;
-//    
-//    RTC::PortInterfaceProfileList iflist;
-//    iflist = port->get_port_profile()->interfaces;
-//    std::cout << "---interfaces---" << std::endl;
-//    for (CORBA::ULong i(0), n(iflist.length()); i < n; ++i)
-//    {
-//      std::cout << "I/F name: ";
-//      std::cout << iflist[[]i].instance_name << std::endl;
-//      std::cout << "I/F type: ";
-//      std::cout << iflist[[]i].type_name << std::endl;
-//      const char* pol;
-//      pol = iflist[[]i].polarity == 0 ? "PROVIDED" : "REQUIRED";
-//      std::cout << "Polarity: " << pol << std::endl;
-//    }
-//    std::cout << "---properties---" << std::endl;
-//    NVUtil::dump(port->get_port_profile()->properties);
-//    std::cout << "----------------" << std::endl << std::endl;
-//  }
+  // std::cout << "Number of Ports: ";
+  // std::cout << portlist->length() << std::endl << std::endl; 
+  // for (CORBA::ULong i(0), n(portlist->length()); i < n; ++i)
+  //   {
+  //     Port_ptr port;
+  //     port = (*portlist)[[]i];
+  //     std::cout << "Port" << i << " (name): ";
+  //     std::cout << port->get_port_profile()->name << std::endl;
+  //    
+  //     RTC::PortInterfaceProfileList iflist;
+  //     iflist = port->get_port_profile()->interfaces;
+  //     std::cout << "---interfaces---" << std::endl;
+  //     for (CORBA::ULong i(0), n(iflist.length()); i < n; ++i)
+  //       {
+  //         std::cout << "I/F name: ";
+  //         std::cout << iflist[[]i].instance_name << std::endl;
+  //         std::cout << "I/F type: ";
+  //         std::cout << iflist[[]i].type_name << std::endl;
+  //         const char* pol;
+  //         pol = iflist[[]i].polarity == 0 ? "PROVIDED" : "REQUIRED";
+  //         std::cout << "Polarity: " << pol << std::endl;
+  //       }
+  //     std::cout << "---properties---" << std::endl;
+  //     NVUtil::dump(port->get_port_profile()->properties);
+  //     std::cout << "----------------" << std::endl << std::endl;
+  //  }
 
   return;
 }



openrtm-commit メーリングリストの案内