Changeset 3798

Show
Ignore:
Timestamp:
05/16/07 15:58:22 (6 years ago)
Author:
ttsou
Message:

updated to work with CF 3979

Location:
components/GenericAssControl/trunk/GenericAssControl
Files:
1 removed
4 modified

Legend:

Unmodified
Added
Removed
  • components/GenericAssControl/trunk/GenericAssControl/Makefile.am

    r1659 r3798  
    1 %SK.cpp %.h : %.idl 
    2         @IDL@ @IDL_FLAGS@ -I@oldincludedir@ -bcxx -Wbh=.h -Wbs=SK.cpp -Wbkeep_inc_path $< 
    3  
    4 %.idl : 
    5         cp @SI_PATH@/standardinterfaces/$@ . 
    6  
    71AM_CXXFLAGS = -Wall  
    8  
    9 BUILT_SOURCES = cfSK.cpp cf.idl  
    10 CLEANFILES = cfSK.cpp cf.idl cf.h  
    112 
    123ossieName = GenericAssControl 
     
    189 
    1910GenericAssControl_SOURCES = GenericAssControl.cpp GenericAssControl.h main.cpp port_impl.cpp port_impl.h 
    20 nodist_GenericAssControl_SOURCES = cfSK.cpp  
    2111 
  • components/GenericAssControl/trunk/GenericAssControl/configure.ac

    r2992 r3798  
    1414AC_LANG_PUSH([C++]) 
    1515 
    16 AC_CHECK_LIB([omniORB4], [main], [], [AC_MSG_ERROR([cannot find omniORBi4 library])]) 
    17 AC_CHECK_LIB([omniDynamic4], [main], [], [AC_MSG_ERROR([cannot find omniDynamic4 library])]) 
     16AC_CHECK_LIB([omniORB4], [main], [], [AC_MSG_ERROR([cannot find omniORB library])]) 
     17AC_CHECK_LIB([omnithread], [main], [], [AC_MSG_ERROR([cannot find omnithread library])]) 
     18AC_CHECK_LIB([omniDynamic4], [main], [], [AC_MSG_ERROR([cannot find omniDynamic library])]) 
    1819AC_CHECK_HEADERS([omniORB4/CORBA.h], [], [AC_MSG_ERROR([cannot find omniORB4 header files])]) 
     20AC_CHECK_PROG([IDL], [omniidl], [omniidl], [AC_MSG_ERROR([cannot find omniidl prgram])]) 
    1921 
    2022AC_LANG_POP 
    2123 
    2224export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" 
    23 PKG_CHECK_MODULES(OSSIE, ossie >= 0.0.1,,exit) 
     25PKG_CHECK_MODULES(OSSIE, ossie >= 0.6.0,,exit) 
    2426CXXFLAGS="$CXXFLAGS $OSSIE_CFLAGS" 
    2527LIBS="$LIBS $OSSIE_LIBS" 
     
    2729AC_SUBST(IDL_FLAGS) 
    2830 
    29 PKG_CHECK_MODULES(SI, standardInterfaces >= 0.0.1,,exit) 
     31PKG_CHECK_MODULES(SI, standardInterfaces >= 0.6.0,,exit) 
    3032SI_PATH=`pkg-config --variable=includedir standardInterfaces` 
    3133AC_SUBST(SI_PATH) 
  • components/GenericAssControl/trunk/GenericAssControl/main.cpp

    r1659 r3798  
    2323#include <iostream> 
    2424#include "ossie/ossieSupport.h" 
     25#include "ossie/debug.h" 
    2526 
    2627#include "GenericAssControl.h" 
     
    2829using namespace std; 
    2930 
    30  
    3131int main(int argc, char* argv[]) 
    3232 
    3333{ 
     34    ossieDebugLevel = 5; 
     35 
     36    DEBUG(5, GenericAssControl, "Starting component"); 
     37 
    3438    ossieSupport::ORB *orb = new ossieSupport::ORB; 
    3539    omni_mutex component_running_mutex; 
    3640    omni_condition *component_running = new omni_condition(&component_running_mutex); 
    3741 
    38     if (argc != 3) { 
    39         cout << argv[0] << " <id> <usage name> " << endl; 
    40         exit (-1); 
    41     } 
     42    DEBUG(5, GenericAssControl, "Creating ossieComponent"); 
     43    ossieSupport::ossieComponent genericAssControl(orb, argc, argv); 
    4244 
    43     char *uuid = argv[1]; 
    44     char *label = argv[2]; 
    45  
    46     cout << "Identifier - " << uuid << "  Label - " << label << endl; 
    47  
     45    // Create the genericasscontrol component servant and object reference 
    4846    GenericAssControl_i* genericasscontrol_servant; 
    4947    CF::Resource_var genericasscontrol_var; 
     48    genericasscontrol_servant = new GenericAssControl_i( 
     49        genericAssControl.getUuid(), component_running); 
    5050 
    51     // Create the genericasscontrol component servant and object reference 
    52  
    53     genericasscontrol_servant = new GenericAssControl_i(uuid, component_running); 
    5451    genericasscontrol_var = genericasscontrol_servant->_this(); 
    5552 
    56     orb->bind_object_to_name((CORBA::Object_var) genericasscontrol_var, label); 
    57  
     53    genericAssControl.bind(genericasscontrol_var); 
     54     
    5855    // This bit is ORB specific 
    5956    // omniorb is threaded and the servants are running at this point 
     
    6259 
    6360    component_running->wait(); 
    64     orb->unbind_name(label); 
     61    genericAssControl.unbind();  
    6562    orb->orb->shutdown(0); 
    6663 
  • components/GenericAssControl/trunk/GenericAssControl/port_impl.h

    r1659 r3798  
    2727#include "ossie/Resource_impl.h" 
    2828#include "GenericAssControl.h" 
    29  
    30 #include "cf.h" 
    3129 
    3230// Declaration for provides ports