Changeset 4935

Show
Ignore:
Timestamp:
08/31/07 14:54:58 (6 years ago)
Author:
jgaeddert
Message:

reverting to sdrf2007 framework

Location:
components/Interpolator/branches/Interpolator-metadata
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • components/Interpolator/branches/Interpolator-metadata/Interpolator.spd.xml

    r3988 r4935  
    1111    </author> 
    1212    <propertyfile type="PRF"> 
    13         <localfile name="Interpolator.prf.xml"/> 
     13        <localfile name="xml/Interpolator/Interpolator.prf.xml"/> 
    1414    </propertyfile> 
    1515    <descriptor> 
    16         <localfile name="Interpolator.scd.xml"/> 
     16        <localfile name="xml/Interpolator/Interpolator.scd.xml"/> 
    1717    </descriptor> 
    1818    <implementation id="DCE:e1a41b54-21c5-11db-9618-000f1fd5acd7" aepcompliance="aep_compliant"> 
    1919        <description>Default Description</description>  
    2020        <code type="Executable"> 
    21             <localfile name="/bin/Interpolator"/> 
     21            <localfile name="bin/Interpolator"/> 
    2222        </code> 
    2323        <processor name="x86"/> 
  • components/Interpolator/branches/Interpolator-metadata/Makefile.am

    r4416 r4935  
    33 
    44ossieName = Interpolator 
    5 dombindir = $(prefix)/dom/bin 
     5dombindir = $(prefix)/bin 
    66dombin_PROGRAMS = Interpolator 
    77 
    8 xmldir = $(prefix)/dom/xml/$(ossieName) 
     8xmldir = $(prefix)/xml/$(ossieName) 
    99dist_xml_DATA = Interpolator.prf.xml Interpolator.scd.xml \ 
    1010Interpolator.spd.xml  
  • components/Interpolator/branches/Interpolator-metadata/main.cpp

    r4078 r4935  
    11/**************************************************************************** 
    22 
    3 Copyright 2006, 2007 Virginia Polytechnic Institute and State University 
     3Copyright 2006 Virginia Polytechnic Institute and State University 
    44 
    55This file is part of the OSSIE Interpolator. 
     
    2222 
    2323#include <iostream> 
    24  
    25 #include <sched.h> 
    26  
    2724#include "ossie/ossieSupport.h" 
    28 #include "ossie/debug.h" 
    2925 
    3026#include "Interpolator.h" 
     27 
     28using namespace std; 
     29using namespace standardInterfaces;  // For standard OSSIE interface classes 
    3130 
    3231 
     
    3433 
    3534{ 
    36     ossieDebugLevel = 3; 
    37  
    3835    ossieSupport::ORB *orb = new ossieSupport::ORB; 
    3936    omni_mutex component_running_mutex; 
    4037    omni_condition *component_running = new omni_condition(&component_running_mutex); 
    4138 
    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; 
    4348 
    4449    Interpolator_i* interpolator_servant; 
     
    4752    // Create the interpolator component servant and object reference 
    4853 
    49     interpolator_servant = new Interpolator_i(interpolator.getUuid(), component_running); 
     54    interpolator_servant = new Interpolator_i(uuid, component_running); 
    5055    interpolator_var = interpolator_servant->_this(); 
    5156 
    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); 
    5458 
    5559    // This bit is ORB specific 
     
    5963 
    6064    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); 
    7266    orb->orb->shutdown(0); 
    7367