[openrtm-commit:01280] r2475 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 2月 13日 (木) 00:30:26 JST


Author: win-ei
Date: 2014-02-13 00:30:26 +0900 (Thu, 13 Feb 2014)
New Revision: 2475

Added:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.h
Log:
These files are due to be generated by omniidl_be. 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.cpp	2014-02-12 15:30:26 UTC (rev 2475)
@@ -0,0 +1,81 @@
+// -*- C++ -*-
+/*!
+ * @file MultiModeComponentActionProxy.cpp 
+ * @brief IMultiModeComponentAction 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 <IMultiModeComponentAction.h>
+#include <MultiModeComponentActionProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC 
+{
+namespace CORBA 
+{
+  /*!
+   * @brief ctor
+   */ 
+  MultiModeComponentActionProxy::MultiModeComponentActionProxy(::CORBA::Object_ptr obj)
+   : ::doil::CORBA::CORBAProxyBase(obj),
+     m_obj(::RTC::MultiModeComponentAction::_nil()),
+     m_refcount(1)//   : m_obj(::RTC::MultiModeComponentAction::_nil())
+  {
+    m_obj = ::RTC::MultiModeComponentAction::_narrow(obj);
+    if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+    m_obj = ::RTC::MultiModeComponentAction::_duplicate(m_obj);
+  }
+
+  /*!
+   * @brief dtor
+   */ 
+  MultiModeComponentActionProxy::~MultiModeComponentActionProxy()
+  {
+    ::CORBA::release(m_obj);
+  }
+
+  
+  /*!
+   * @brief on_mode_changed 
+   */ 
+  ::RTC::Local::ReturnCode_t MultiModeComponentActionProxy::on_mode_changed(::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_mode_changed(_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 MultiModeComponentActionProxyCORBAInit(coil::Properties& prop)
+  {
+    doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+    mgr.registerProxyFactory("MultiModeComponentActionProxy",
+                        doil::New< ::RTC::CORBA::MultiModeComponentActionProxy >,
+                        doil::Delete< ::RTC::CORBA::MultiModeComponentActionProxy >);
+  }
+};
+

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MultiModeComponentActionProxy.h	2014-02-12 15:30:26 UTC (rev 2475)
@@ -0,0 +1,80 @@
+// -*- C++ -*-
+/*!
+ * @file MultiModeComponentActionProxy.h 
+ * @brief MultiModeComponentActionProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_MULTIMODECOMPONENTACTIONPROXY_H 
+#define RTC_MULTIMODECOMPONENTACTIONPROXY_H 
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IMultiModeComponentAction.h>
+#include <SDOPackageTypes.h>
+#include <rtc/corba/idl/RTCSkel.h>
+
+
+namespace RTC 
+{
+namespace CORBA 
+{
+
+  class MultiModeComponentActionProxy 
+  : public virtual ::doil::CORBA::CORBAProxyBase,
+    public virtual ::RTC::Local::IMultiModeComponentAction
+  {
+    typedef coil::Mutex Mutex;
+    typedef coil::Guard<Mutex> Guard;
+  public:
+    MultiModeComponentActionProxy(::CORBA::Object_ptr obj);
+    virtual ~MultiModeComponentActionProxy();
+
+    virtual ::RTC::Local::ReturnCode_t on_mode_changed(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+
+
+    const char* id() {return "MultiModeComponentAction";}
+    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::MultiModeComponentAction_ptr m_obj;
+  private:
+    std::string m_name;
+    Mutex m_refcountMutex;
+    int m_refcount;
+  };
+
+}; // namespace CORBA
+}; // namespace RTC 
+
+#ifndef RTC_MULTIMODECOMPONENTACTIONSERVANT_H 
+
+
+#endif // RTC_MULTIMODECOMPONENTACTIONSERVANT_H
+
+extern "C"
+{
+  void MultiModeComponentActionProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_MULTIMODECOMPONENTACTIONPROXY_H



More information about the openrtm-commit mailing list