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