[openrtm-commit:01261] r2456 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 12日 (水) 16:23:57 JST
Author: win-ei
Date: 2014-02-12 16:23:56 +0900 (Wed, 12 Feb 2014)
New Revision: 2456
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.h
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.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/DataFlowComponentProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.cpp 2014-02-12 07:23:56 UTC (rev 2456)
@@ -0,0 +1,63 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentProxy.cpp
+ * @brief IDataFlowComponent 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 <IDataFlowComponent.h>
+#include <DataFlowComponentProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ DataFlowComponentProxy::DataFlowComponentProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::RTC::DataFlowComponent::_nil()),
+ m_refcount(1),
+ ::RTC::CORBA::LightweightRTObjectProxy(obj),
+ ::RTC::CORBA::DataFlowComponentActionProxy(obj),
+ ::RTC::CORBA::ComponentActionProxy(obj)// : m_obj(::RTC::DataFlowComponent::_nil()),
+// ::RTC::LightweightRTObjectProxy(obj),
+// ::RTC::DataFlowComponentActionProxy(obj),
+// ::RTC::ComponentActionProxy(obj)
+ {
+ m_obj = ::RTC::DataFlowComponent::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::RTC::DataFlowComponent::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ DataFlowComponentProxy::~DataFlowComponentProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+}; // namespace CORBA
+}; // namespace RTC
+
+extern "C"
+{
+ void DataFlowComponentProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("DataFlowComponentProxy",
+ doil::New< ::RTC::CORBA::DataFlowComponentProxy >,
+ doil::Delete< ::RTC::CORBA::DataFlowComponentProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/DataFlowComponentProxy.h 2014-02-12 07:23:56 UTC (rev 2456)
@@ -0,0 +1,81 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentProxy.h
+ * @brief DataFlowComponentProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_DATAFLOWCOMPONENTPROXY_H
+#define RTC_DATAFLOWCOMPONENTPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IDataFlowComponent.h>
+#include <LightweightRTObjectProxy.h>
+#include <DataFlowComponentActionProxy.h>
+#include <ComponentActionProxy.h>
+#include <SDOPackageTypes.h>
+
+
+namespace RTC
+{
+
+namespace CORBA
+{
+ class DataFlowComponentProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::RTC::CORBA::LightweightRTObjectProxy,
+ public virtual ::RTC::CORBA::DataFlowComponentActionProxy,
+ public virtual ::RTC::CORBA::ComponentActionProxy,
+ public virtual ::RTC::Local::IDataFlowComponent
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ DataFlowComponentProxy(::CORBA::Object_ptr obj);
+ virtual ~DataFlowComponentProxy();
+
+
+ const char* id() {return "DataFlowComponent";}
+ 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::DataFlowComponent_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace RTC
+
+#ifndef RTC_DATAFLOWCOMPONENTSERVANT_H
+
+
+#endif // RTC_DATAFLOWCOMPONENTSERVANT_H
+
+extern "C"
+{
+ void DataFlowComponentProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_DATAFLOWCOMPONENTPROXY_H
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.cpp 2014-02-12 07:23:56 UTC (rev 2456)
@@ -0,0 +1,295 @@
+// -*- C++ -*-
+/*!
+ * @file LightweightRTObjectProxy.cpp
+ * @brief ILightweightRTObject 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 <ILightweightRTObject.h>
+#include <LightweightRTObjectProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ LightweightRTObjectProxy::LightweightRTObjectProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::RTC::LightweightRTObject::_nil()),
+ m_refcount(1),
+ ::RTC::CORBA::ComponentActionProxy(obj)// : m_obj(::RTC::LightweightRTObject::_nil()),
+// ::RTC::ComponentActionProxy(obj)
+ {
+ m_obj = ::RTC::LightweightRTObject::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::RTC::LightweightRTObject::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ LightweightRTObjectProxy::~LightweightRTObjectProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+ /*!
+ * @brief initialize
+ */
+ ::RTC::Local::ReturnCode_t LightweightRTObjectProxy::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->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 finalize
+ */
+ ::RTC::Local::ReturnCode_t LightweightRTObjectProxy::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->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 is_alive
+ */
+ bool LightweightRTObjectProxy::is_alive(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContext_ptr _exec_context;
+ local_to_corba(const_cast< ::RTC::Local::IExecutionContext* >(exec_context), _exec_context);
+
+ // Execute the method.
+ ::CORBA::Boolean corba_ret;
+ bool local_ret;
+ corba_ret = m_obj->is_alive(_exec_context);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+// local_ret = corba_ret;
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief exit
+ */
+ ::RTC::Local::ReturnCode_t LightweightRTObjectProxy::exit()
+ 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->exit();
+
+ // 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 attach_context
+ */
+ ::RTC::Local::ExecutionContextHandle_t LightweightRTObjectProxy::attach_context(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContext_ptr _exec_context;
+ local_to_corba(const_cast< ::RTC::Local::IExecutionContext* >(exec_context), _exec_context);
+
+ // Execute the method.
+ ::RTC::ExecutionContextHandle_t corba_ret;
+ ::RTC::Local::ExecutionContextHandle_t local_ret;
+ corba_ret = m_obj->attach_context(_exec_context);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+// local_ret = corba_ret;
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief detach_context
+ */
+ ::RTC::Local::ReturnCode_t LightweightRTObjectProxy::detach_context(::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->detach_context(_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 get_context
+ */
+ ::RTC::Local::IExecutionContext* LightweightRTObjectProxy::get_context(::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::ExecutionContext_ptr corba_ret;
+ ::RTC::Local::IExecutionContext* local_ret;
+ corba_ret = m_obj->get_context(_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);
+ ::CORBA::release(corba_ret);
+ return local_ret;
+ }
+
+ /*!
+ * @brief get_owned_contexts
+ */
+ ::RTC::Local::ExecutionContextList LightweightRTObjectProxy::get_owned_contexts()
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+
+ // Execute the method.
+ ::RTC::ExecutionContextList* corba_ret;
+ ::RTC::Local::ExecutionContextList local_ret;
+ corba_ret = m_obj->get_owned_contexts();
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(*corba_ret, local_ret);
+ delete corba_ret;
+ return local_ret;
+ }
+
+ /*!
+ * @brief get_participating_contexts
+ */
+ ::RTC::Local::ExecutionContextList LightweightRTObjectProxy::get_participating_contexts()
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+
+ // Execute the method.
+ ::RTC::ExecutionContextList* corba_ret;
+ ::RTC::Local::ExecutionContextList local_ret;
+ corba_ret = m_obj->get_participating_contexts();
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+ corba_to_local(*corba_ret, local_ret);
+ delete corba_ret;
+ return local_ret;
+ }
+
+ /*!
+ * @brief get_context_handle
+ */
+ ::RTC::Local::ExecutionContextHandle_t LightweightRTObjectProxy::get_context_handle(const ::RTC::Local::IExecutionContext* cxt)
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+ ::RTC::ExecutionContext_ptr _cxt;
+ local_to_corba(const_cast< ::RTC::Local::IExecutionContext* >(cxt), _cxt);
+
+ // Execute the method.
+ ::RTC::ExecutionContextHandle_t corba_ret;
+ ::RTC::Local::ExecutionContextHandle_t local_ret;
+ corba_ret = m_obj->get_context_handle(_cxt);
+
+ // Convert CORBA to Local.
+ // (The direction of the argument is 'out' or 'inout'.)
+
+ // Generate the return value.
+// local_ret = corba_ret;
+ corba_to_local(corba_ret, local_ret);
+ return local_ret;
+ }
+
+}; // namespace CORBA
+}; // namespace RTC
+
+extern "C"
+{
+ void LightweightRTObjectProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("LightweightRTObjectProxy",
+ doil::New< ::RTC::CORBA::LightweightRTObjectProxy >,
+ doil::Delete< ::RTC::CORBA::LightweightRTObjectProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/LightweightRTObjectProxy.h 2014-02-12 07:23:56 UTC (rev 2456)
@@ -0,0 +1,117 @@
+// -*- C++ -*-
+/*!
+ * @file LightweightRTObjectProxy.h
+ * @brief LightweightRTObjectProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_LIGHTWEIGHTRTOBJECTPROXY_H
+#define RTC_LIGHTWEIGHTRTOBJECTPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <ILightweightRTObject.h>
+#include <ComponentActionProxy.h>
+#include <SDOPackageTypes.h>
+
+
+namespace RTC
+{
+namespace CORBA
+{
+
+ class LightweightRTObjectProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::RTC::CORBA::ComponentActionProxy,
+ public virtual ::RTC::Local::ILightweightRTObject
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ LightweightRTObjectProxy(::CORBA::Object_ptr obj);
+ virtual ~LightweightRTObjectProxy();
+
+ virtual ::RTC::Local::ReturnCode_t initialize()
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t finalize()
+ throw ();
+
+
+ virtual bool is_alive(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t exit()
+ throw ();
+
+
+ virtual ::RTC::Local::ExecutionContextHandle_t attach_context(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ();
+
+
+ virtual ::RTC::Local::ReturnCode_t detach_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::IExecutionContext* get_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+ virtual ::RTC::Local::ExecutionContextList get_owned_contexts()
+ throw ();
+
+
+ virtual ::RTC::Local::ExecutionContextList get_participating_contexts()
+ throw ();
+
+
+ virtual ::RTC::Local::ExecutionContextHandle_t get_context_handle(const ::RTC::Local::IExecutionContext* cxt)
+ throw ();
+
+
+
+ const char* id() {return "LightweightRTObject";}
+ 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::LightweightRTObject_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace RTC
+
+#ifndef RTC_LIGHTWEIGHTRTOBJECTSERVANT_H
+
+
+#endif // RTC_LIGHTWEIGHTRTOBJECTSERVANT_H
+
+extern "C"
+{
+ void LightweightRTObjectProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_LIGHTWEIGHTRTOBJECTPROXY_H
More information about the openrtm-commit
mailing list