Changeset 3798
- Timestamp:
- 05/16/07 15:58:22 (6 years ago)
- Location:
- components/GenericAssControl/trunk/GenericAssControl
- Files:
-
- 1 removed
- 4 modified
-
Makefile.am (modified) (2 diffs)
-
cf.idl (deleted)
-
configure.ac (modified) (2 diffs)
-
main.cpp (modified) (3 diffs)
-
port_impl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
components/GenericAssControl/trunk/GenericAssControl/Makefile.am
r1659 r3798 1 %SK.cpp %.h : %.idl2 @IDL@ @IDL_FLAGS@ -I@oldincludedir@ -bcxx -Wbh=.h -Wbs=SK.cpp -Wbkeep_inc_path $<3 4 %.idl :5 cp @SI_PATH@/standardinterfaces/$@ .6 7 1 AM_CXXFLAGS = -Wall 8 9 BUILT_SOURCES = cfSK.cpp cf.idl10 CLEANFILES = cfSK.cpp cf.idl cf.h11 2 12 3 ossieName = GenericAssControl … … 18 9 19 10 GenericAssControl_SOURCES = GenericAssControl.cpp GenericAssControl.h main.cpp port_impl.cpp port_impl.h 20 nodist_GenericAssControl_SOURCES = cfSK.cpp21 11 -
components/GenericAssControl/trunk/GenericAssControl/configure.ac
r2992 r3798 14 14 AC_LANG_PUSH([C++]) 15 15 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])]) 16 AC_CHECK_LIB([omniORB4], [main], [], [AC_MSG_ERROR([cannot find omniORB library])]) 17 AC_CHECK_LIB([omnithread], [main], [], [AC_MSG_ERROR([cannot find omnithread library])]) 18 AC_CHECK_LIB([omniDynamic4], [main], [], [AC_MSG_ERROR([cannot find omniDynamic library])]) 18 19 AC_CHECK_HEADERS([omniORB4/CORBA.h], [], [AC_MSG_ERROR([cannot find omniORB4 header files])]) 20 AC_CHECK_PROG([IDL], [omniidl], [omniidl], [AC_MSG_ERROR([cannot find omniidl prgram])]) 19 21 20 22 AC_LANG_POP 21 23 22 24 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" 23 PKG_CHECK_MODULES(OSSIE, ossie >= 0. 0.1,,exit)25 PKG_CHECK_MODULES(OSSIE, ossie >= 0.6.0,,exit) 24 26 CXXFLAGS="$CXXFLAGS $OSSIE_CFLAGS" 25 27 LIBS="$LIBS $OSSIE_LIBS" … … 27 29 AC_SUBST(IDL_FLAGS) 28 30 29 PKG_CHECK_MODULES(SI, standardInterfaces >= 0. 0.1,,exit)31 PKG_CHECK_MODULES(SI, standardInterfaces >= 0.6.0,,exit) 30 32 SI_PATH=`pkg-config --variable=includedir standardInterfaces` 31 33 AC_SUBST(SI_PATH) -
components/GenericAssControl/trunk/GenericAssControl/main.cpp
r1659 r3798 23 23 #include <iostream> 24 24 #include "ossie/ossieSupport.h" 25 #include "ossie/debug.h" 25 26 26 27 #include "GenericAssControl.h" … … 28 29 using namespace std; 29 30 30 31 31 int main(int argc, char* argv[]) 32 32 33 33 { 34 ossieDebugLevel = 5; 35 36 DEBUG(5, GenericAssControl, "Starting component"); 37 34 38 ossieSupport::ORB *orb = new ossieSupport::ORB; 35 39 omni_mutex component_running_mutex; 36 40 omni_condition *component_running = new omni_condition(&component_running_mutex); 37 41 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); 42 44 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 48 46 GenericAssControl_i* genericasscontrol_servant; 49 47 CF::Resource_var genericasscontrol_var; 48 genericasscontrol_servant = new GenericAssControl_i( 49 genericAssControl.getUuid(), component_running); 50 50 51 // Create the genericasscontrol component servant and object reference52 53 genericasscontrol_servant = new GenericAssControl_i(uuid, component_running);54 51 genericasscontrol_var = genericasscontrol_servant->_this(); 55 52 56 orb->bind_object_to_name((CORBA::Object_var) genericasscontrol_var, label);57 53 genericAssControl.bind(genericasscontrol_var); 54 58 55 // This bit is ORB specific 59 56 // omniorb is threaded and the servants are running at this point … … 62 59 63 60 component_running->wait(); 64 orb->unbind_name(label);61 genericAssControl.unbind(); 65 62 orb->orb->shutdown(0); 66 63 -
components/GenericAssControl/trunk/GenericAssControl/port_impl.h
r1659 r3798 27 27 #include "ossie/Resource_impl.h" 28 28 #include "GenericAssControl.h" 29 30 #include "cf.h"31 29 32 30 // Declaration for provides ports