[openrtm-commit:01256] r2451 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 12日 (水) 14:09:14 JST
Author: win-ei
Date: 2014-02-12 14:09:14 +0900 (Wed, 12 Feb 2014)
New Revision: 2451
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.h
Log:
These files are likely to be generated by omniidl_be.
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.cpp 2014-02-12 05:09:14 UTC (rev 2451)
@@ -0,0 +1,269 @@
+// -*- C++ -*-
+/*!
+ * @file ComponentActionProxy.cpp
+ * @brief IComponentAction CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated form RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+
+#include <doil/corba/CORBAManager.h>
+#include <IComponentAction.h>
+#include <ComponentActionProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ ComponentActionProxy::ComponentActionProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::RTC::ComponentAction::_nil()),
+ m_refcount(1)// : m_obj(::RTC::ComponentAction::_nil())
+ {
+ m_obj = ::RTC::ComponentAction::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::RTC::ComponentAction::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ ComponentActionProxy::~ComponentActionProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+ /*!
+ * @brief on_initialize
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_initialize()
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_initialize();
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_finalize
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_finalize()
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_finalize();
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_startup
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_startup(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_startup(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_shutdown
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_shutdown(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_shutdown(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_activated
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_activated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_activated(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_deactivated
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_deactivated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_deactivated(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_aborting
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_aborting(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_aborting(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_error
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_error(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_error(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief on_reset
+ */
+ ::RTC::Local::ReturnCode_t ComponentActionProxy::on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContextHandle_t _exec_handle;
+ local_to_corba(exec_handle, _exec_handle);
+
+ // Execute the method.
+ ::RTC::ReturnCode_t corba_ret;
+ ::RTC::Local::ReturnCode_t local_ret;
+ corba_ret = m_obj->on_reset(_exec_handle);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+}; // namespace CORBA
+}; // namespace RTC
+
+extern "C"
+{
+ void ComponentActionProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("ComponentActionProxy",
+ doil::New< ::RTC::CORBA::ComponentActionProxy >,
+ doil::Delete< ::RTC::CORBA::ComponentActionProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ComponentActionProxy.h 2014-02-12 05:09:14 UTC (rev 2451)
@@ -0,0 +1,112 @@
+// -*- C++ -*-
+/*!
+ * @file ComponentActionProxy.h
+ * @brief ComponentActionProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_COMPONENTACTIONPROXY_H
+#define RTC_COMPONENTACTIONPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IComponentAction.h>
+#include <SDOPackageTypes.h>
+#include <rtc/corba/idl/RTCSkel.h>
+
+
+namespace RTC
+{
+namespace CORBA
+{
+
+ class ComponentActionProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::RTC::Local::IComponentAction
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ ComponentActionProxy(::CORBA::Object_ptr obj);
+ virtual ~ComponentActionProxy();
+
+ virtual ::RTC::Local::ReturnCode_t on_initialize()
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_finalize()
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_startup(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_shutdown(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_activated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_deactivated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_aborting(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_error(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+
+ const char* id() {return "ComponentAction";}
+ const char* name() {return m_name.c_str();}
+ void incRef()
+ {
+ Guard guard(m_refcountMutex);
+ ++m_refcount;
+ }
+ void decRef()
+ {
+ Guard guard(m_refcountMutex);
+ --m_refcount;
+ if (m_refcount == 0)
+ delete this;
+ }
+
+ private:
+ ::RTC::ComponentAction_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace RTC
+
+#ifndef RTC_COMPONENTACTIONSERVANT_H
+
+
+#endif // RTC_COMPONENTACTIONSERVANT_H
+
+extern "C"
+{
+ void ComponentActionProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_COMPONENTACTIONPROXY_H
More information about the openrtm-commit
mailing list