Changeset 6588
- Timestamp:
- 02/28/08 17:31:17 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
components/WFMDemod/branches/WFMDemod-0.6.x/ossieResource.h
r6587 r6588 63 63 component_running = new omni_condition(&component_running_mutex); 64 64 65 if (argc != 3) { 66 std::cout << argv[0] << " <id> <usage name> " << std::endl; 67 exit(-1); 68 } 69 70 char *uuid = argv[1]; 71 char *label = argv[2]; 72 65 73 DEBUG(5, ossieResourceT, "Creating ossieComponent."); 66 resource = new ossieSupport::ossieComponent(orb, argc, argv);67 74 68 resource_servant = new T(resource->getUuid(), component_running); 75 std::cout << "Identifier - " << uuid << " Label - " << label << std::endl; 76 77 resource_servant = new T(uuid, component_running); 69 78 resource_var = resource_servant->_this(); 70 79 71 80 resource_servant->post_constructor(resource_var); 72 81 73 resource->bind(resource_var);82 orb->bind_object_to_name((CORBA::Object_ptr) resource_var, label); 74 83 75 84 component_running->wait(); 85 orb->unbind_name(label); 86 orb->orb->shutdown(0); 76 87 } 77 88