Changeset 4935
- Timestamp:
- 08/31/07 14:54:58 (6 years ago)
- Location:
- components/Interpolator/branches/Interpolator-metadata
- Files:
-
- 3 modified
-
Interpolator.spd.xml (modified) (1 diff)
-
Makefile.am (modified) (1 diff)
-
main.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/Interpolator/branches/Interpolator-metadata/Interpolator.spd.xml
r3988 r4935 11 11 </author> 12 12 <propertyfile type="PRF"> 13 <localfile name=" Interpolator.prf.xml"/>13 <localfile name="xml/Interpolator/Interpolator.prf.xml"/> 14 14 </propertyfile> 15 15 <descriptor> 16 <localfile name=" Interpolator.scd.xml"/>16 <localfile name="xml/Interpolator/Interpolator.scd.xml"/> 17 17 </descriptor> 18 18 <implementation id="DCE:e1a41b54-21c5-11db-9618-000f1fd5acd7" aepcompliance="aep_compliant"> 19 19 <description>Default Description</description> 20 20 <code type="Executable"> 21 <localfile name=" /bin/Interpolator"/>21 <localfile name="bin/Interpolator"/> 22 22 </code> 23 23 <processor name="x86"/> -
components/Interpolator/branches/Interpolator-metadata/Makefile.am
r4416 r4935 3 3 4 4 ossieName = Interpolator 5 dombindir = $(prefix)/ dom/bin5 dombindir = $(prefix)/bin 6 6 dombin_PROGRAMS = Interpolator 7 7 8 xmldir = $(prefix)/ dom/xml/$(ossieName)8 xmldir = $(prefix)/xml/$(ossieName) 9 9 dist_xml_DATA = Interpolator.prf.xml Interpolator.scd.xml \ 10 10 Interpolator.spd.xml -
components/Interpolator/branches/Interpolator-metadata/main.cpp
r4078 r4935 1 1 /**************************************************************************** 2 2 3 Copyright 2006 , 2007Virginia Polytechnic Institute and State University3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 5 This file is part of the OSSIE Interpolator. … … 22 22 23 23 #include <iostream> 24 25 #include <sched.h>26 27 24 #include "ossie/ossieSupport.h" 28 #include "ossie/debug.h"29 25 30 26 #include "Interpolator.h" 27 28 using namespace std; 29 using namespace standardInterfaces; // For standard OSSIE interface classes 31 30 32 31 … … 34 33 35 34 { 36 ossieDebugLevel = 3;37 38 35 ossieSupport::ORB *orb = new ossieSupport::ORB; 39 36 omni_mutex component_running_mutex; 40 37 omni_condition *component_running = new omni_condition(&component_running_mutex); 41 38 42 ossieSupport::ossieComponent interpolator(orb, argc, argv); 39 if (argc != 3) { 40 cout << argv[0] << " <id> <usage name> " << endl; 41 exit (-1); 42 } 43 44 char *uuid = argv[1]; 45 char *label = argv[2]; 46 47 cout << "Identifier - " << uuid << " Label - " << label << endl; 43 48 44 49 Interpolator_i* interpolator_servant; … … 47 52 // Create the interpolator component servant and object reference 48 53 49 interpolator_servant = new Interpolator_i( interpolator.getUuid(), component_running);54 interpolator_servant = new Interpolator_i(uuid, component_running); 50 55 interpolator_var = interpolator_servant->_this(); 51 56 52 PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(interpolator_var); 53 interpolator.bind(interpolator_var); 57 orb->bind_object_to_name((CORBA::Object_ptr) interpolator_var, label); 54 58 55 59 // This bit is ORB specific … … 59 63 60 64 component_running->wait(); 61 62 DEBUG(4, Interpolator, "About to unbind."); 63 interpolator.unbind(); 64 65 DEBUG(4, Interpolator, "Deactivate object."); 66 orb->poa->deactivate_object(servantId); 67 68 DEBUG(4, Interpolator, "Destroy POA."); 69 orb->poa->destroy(false, false); 70 71 DEBUG(4, Interpolator, "About to shutdown orb."); 65 orb->unbind_name(label); 72 66 orb->orb->shutdown(0); 73 67