[openrtm-commit:01525] r2605 - in trunk/OpenRTM-aist: . src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2015年 4月 30日 (木) 15:24:45 JST
Author: n-ando
Date: 2015-04-30 15:24:45 +0900 (Thu, 30 Apr 2015)
New Revision: 2605
Modified:
trunk/OpenRTM-aist/configure.ac
trunk/OpenRTM-aist/src/lib/rtm/CORBA_IORUtil.cpp
trunk/OpenRTM-aist/src/lib/rtm/Manager.cpp
Log:
[compat,->RELENG_1_1] Add support omniORB-4.2 or later
Modified: trunk/OpenRTM-aist/configure.ac
===================================================================
--- trunk/OpenRTM-aist/configure.ac 2015-02-27 05:43:51 UTC (rev 2604)
+++ trunk/OpenRTM-aist/configure.ac 2015-04-30 06:24:45 UTC (rev 2605)
@@ -1019,11 +1019,21 @@
case $omniorb_version in
4.0.*)
AC_MSG_RESULT(CORBA C++ mapping ver1.0 is used.)
+ AC_DEFINE([RTM_OMNIORB_40], [TRUE], [omniORB version is 4.0])
+ AC_MSG_RESULT(omniORB version is 4.0.)
;;
4.1|4.1.*)
AC_DEFINE([RTC_CORBA_CXXMAPPING11], [TRUE], [CORBA C++ mapping is ver1.1])
AC_MSG_RESULT(CORBA C++ mapping ver1.1 is used.)
+ AC_DEFINE([RTM_OMNIORB_41], [TRUE], [omniORB version is 4.1])
+ AC_MSG_RESULT(omniORB version is 4.1.)
;;
+ 4.2|4.2.*)
+ AC_DEFINE([RTC_CORBA_CXXMAPPING11], [TRUE], [CORBA C++ mapping is ver1.1])
+ AC_MSG_RESULT(CORBA C++ mapping ver1.1 is used.)
+ AC_DEFINE([RTM_OMNIORB_42], [TRUE], [omniORB version is 4.2])
+ AC_MSG_RESULT(omniORB version is 4.2.)
+ ;;
esac
AC_MSG_RESULT($omnirob_version)
Modified: trunk/OpenRTM-aist/src/lib/rtm/CORBA_IORUtil.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/CORBA_IORUtil.cpp 2015-02-27 05:43:51 UTC (rev 2604)
+++ trunk/OpenRTM-aist/src/lib/rtm/CORBA_IORUtil.cpp 2015-04-30 06:24:45 UTC (rev 2605)
@@ -399,6 +399,7 @@
static void print_tagged_components(std::stringstream& sstr,
IOP::MultipleComponentProfile& components)
{
+#if defined(RTM_OMNIORB_40) || defined(RTM_OMNIORB_41)
CORBA::ULong total(components.length());
for (CORBA::ULong index(0); index < total; ++index)
@@ -425,6 +426,7 @@
sstr << " Broken component" << std::endl;
}
}
+#endif // defined(RTM_OMNIORB_40) || defined(RTM_OMNIORB_41)
}
#endif // ORB_IS_RTORB
};
Modified: trunk/OpenRTM-aist/src/lib/rtm/Manager.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/Manager.cpp 2015-02-27 05:43:51 UTC (rev 2604)
+++ trunk/OpenRTM-aist/src/lib/rtm/Manager.cpp 2015-04-30 06:24:45 UTC (rev 2605)
@@ -1287,7 +1287,11 @@
CORBA::UShort port;
coil::stringTo(port, addr_port[1].c_str());
iiop_addr.port = port;
+#if defined(RTM_OMNIORB_40) || defined(RTM_OMNIORB_41)
omniIOR::add_IIOP_ADDRESS(iiop_addr);
+#else
+ omniIOR::add_IIOP_ADDRESS(iiop_addr, 0);
+#endif // defined(RTC_OMNIORB_40) and defined(RTC_OMNIORB_41)
}
}
}
More information about the openrtm-commit
mailing list