30 RTC::RTObject_var rtobj;
31 rtobj = RTC::RTObject::_narrow(manager->
getPOA()->servant_to_reference(comp));
38 std::cout <<
"Number of Ports: ";
39 std::cout << portlist->length() << std::endl << std::endl;
40 for (CORBA::ULong
i(0),
n(portlist->length());
i <
n; ++
i)
43 port = (*portlist)[
i];
44 std::cout <<
"Port" <<
i <<
" (name): ";
45 std::cout << port->get_port_profile()->name << std::endl;
47 RTC::PortInterfaceProfileList iflist;
48 iflist = port->get_port_profile()->interfaces;
49 std::cout <<
"---interfaces---" << std::endl;
50 for (CORBA::ULong i(0), n(iflist.length()); i < n; ++i)
52 std::cout <<
"I/F name: ";
53 std::cout << iflist[i].instance_name << std::endl;
54 std::cout <<
"I/F type: ";
55 std::cout << iflist[i].type_name << std::endl;
57 pol = iflist[i].polarity == 0 ?
"PROVIDED" :
"REQUIRED";
58 std::cout <<
"Polarity: " << pol << std::endl;
60 std::cout <<
"---properties---" << std::endl;
62 std::cout <<
"----------------" << std::endl << std::endl;
68 int main (
int argc,
char** argv)
74 manager->
init(argc, argv);
RTObject_impl * createComponent(const char *comp_args)
PortableServer::POA_ptr getPOA()
void runManager(bool no_block=false)
virtual PortServiceList * get_ports()
static Manager * init(int argc, char **argv)
void dump(const SDOPackage::NVList &nv)
std::vector< IPortService *> PortServiceList
void setModuleInitProc(ModuleInitProc proc)
int main(int argc, char **argv)
void MyModuleInit(RTC::Manager *manager)
void RemoveForceSensorLinkOffsetInit(RTC::Manager *manager)