[openrtm-commit:01267] r2462 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 12日 (水) 22:10:27 JST
Author: win-ei
Date: 2014-02-12 22:10:27 +0900 (Wed, 12 Feb 2014)
New Revision: 2462
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.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/FsmParticipantActionProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.cpp 2014-02-12 13:10:27 UTC (rev 2462)
@@ -0,0 +1,81 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantActionProxy.cpp
+ * @brief IFsmParticipantAction 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 <IFsmParticipantAction.h>
+#include <FsmParticipantActionProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ FsmParticipantActionProxy::FsmParticipantActionProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::RTC::FsmParticipantAction::_nil()),
+ m_refcount(1)// : m_obj(::RTC::FsmParticipantAction::_nil())
+ {
+ m_obj = ::RTC::FsmParticipantAction::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::RTC::FsmParticipantAction::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ FsmParticipantActionProxy::~FsmParticipantActionProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+ /*!
+ * @brief on_action
+ */
+ ::RTC::Local::ReturnCode_t FsmParticipantActionProxy::on_action(::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_action(_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 FsmParticipantActionProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("FsmParticipantActionProxy",
+ doil::New< ::RTC::CORBA::FsmParticipantActionProxy >,
+ doil::Delete< ::RTC::CORBA::FsmParticipantActionProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantActionProxy.h 2014-02-12 13:10:27 UTC (rev 2462)
@@ -0,0 +1,80 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantActionProxy.h
+ * @brief FsmParticipantActionProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_FSMPARTICIPANTACTIONPROXY_H
+#define RTC_FSMPARTICIPANTACTIONPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IFsmParticipantAction.h>
+#include <SDOPackageTypes.h>
+#include <rtc/corba/idl/RTCSkel.h>
+
+
+namespace RTC
+{
+namespace CORBA
+{
+
+ class FsmParticipantActionProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::RTC::Local::IFsmParticipantAction
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ FsmParticipantActionProxy(::CORBA::Object_ptr obj);
+ virtual ~FsmParticipantActionProxy();
+
+ virtual ::RTC::Local::ReturnCode_t on_action(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+
+
+ const char* id() {return "FsmParticipantAction";}
+ 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::FsmParticipantAction_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace RTC
+
+#ifndef RTC_FSMPARTICIPANTACTIONSERVANT_H
+
+
+#endif // RTC_FSMPARTICIPANTACTIONSERVANT_H
+
+extern "C"
+{
+ void FsmParticipantActionProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_FSMPARTICIPANTACTIONPROXY_H
More information about the openrtm-commit
mailing list