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

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 2月 12日 (水) 22:31:00 JST


Author: win-ei
Date: 2014-02-12 22:31:00 +0900 (Wed, 12 Feb 2014)
New Revision: 2464

Added:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.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/FsmParticipantProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.cpp	2014-02-12 13:31:00 UTC (rev 2464)
@@ -0,0 +1,63 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantProxy.cpp 
+ * @brief IFsmParticipant 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 <IFsmParticipant.h>
+#include <FsmParticipantProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC 
+{
+namespace CORBA 
+{
+  /*!
+   * @brief ctor
+   */ 
+  FsmParticipantProxy::FsmParticipantProxy(::CORBA::Object_ptr obj)
+   : ::doil::CORBA::CORBAProxyBase(obj),
+     m_obj(::RTC::FsmParticipant::_nil()),
+     m_refcount(1),
+     ::RTC::CORBA::LightweightRTObjectProxy(obj),
+     ::RTC::CORBA::FsmParticipantActionProxy(obj),
+     ::RTC::CORBA::ComponentActionProxy(obj)//   : m_obj(::RTC::FsmParticipant::_nil()),
+//     ::RTC::LightweightRTObjectProxy(obj),
+//     ::RTC::FsmParticipantActionProxy(obj),
+//     ::RTC::ComponentActionProxy(obj)
+  {
+    m_obj = ::RTC::FsmParticipant::_narrow(obj);
+    if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+    m_obj = ::RTC::FsmParticipant::_duplicate(m_obj);
+  }
+
+  /*!
+   * @brief dtor
+   */ 
+  FsmParticipantProxy::~FsmParticipantProxy()
+  {
+    ::CORBA::release(m_obj);
+  }
+
+  
+}; // namespace CORBA
+}; // namespace RTC 
+
+extern "C"
+{
+  void FsmParticipantProxyCORBAInit(coil::Properties& prop)
+  {
+    doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+    mgr.registerProxyFactory("FsmParticipantProxy",
+                        doil::New< ::RTC::CORBA::FsmParticipantProxy >,
+                        doil::Delete< ::RTC::CORBA::FsmParticipantProxy >);
+  }
+};
+

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/FsmParticipantProxy.h	2014-02-12 13:31:00 UTC (rev 2464)
@@ -0,0 +1,82 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantProxy.h 
+ * @brief FsmParticipantProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_FSMPARTICIPANTPROXY_H 
+#define RTC_FSMPARTICIPANTPROXY_H 
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IFsmParticipant.h>
+#include <LightweightRTObjectProxy.h>
+#include <FsmParticipantActionProxy.h>
+#include <ComponentActionProxy.h>
+#include <SDOPackageTypes.h>
+#include <rtc/corba/idl/RTCSkel.h>
+
+
+namespace RTC 
+{
+namespace CORBA 
+{
+
+  class FsmParticipantProxy 
+  : public virtual ::doil::CORBA::CORBAProxyBase,
+    public virtual ::RTC::CORBA::LightweightRTObjectProxy,
+    public virtual ::RTC::CORBA::FsmParticipantActionProxy,
+    public virtual ::RTC::CORBA::ComponentActionProxy,
+    public virtual ::RTC::Local::IFsmParticipant
+  {
+    typedef coil::Mutex Mutex;
+    typedef coil::Guard<Mutex> Guard;
+  public:
+    FsmParticipantProxy(::CORBA::Object_ptr obj);
+    virtual ~FsmParticipantProxy();
+
+
+    const char* id() {return "FsmParticipant";}
+    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::FsmParticipant_ptr m_obj;
+  private:
+    std::string m_name;
+    Mutex m_refcountMutex;
+    int m_refcount;
+  };
+
+}; // namespace CORBA
+}; // namespace RTC 
+
+#ifndef RTC_FSMPARTICIPANTSERVANT_H 
+
+
+#endif // RTC_FSMPARTICIPANTSERVANT_H
+
+extern "C"
+{
+  void FsmParticipantProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_FSMPARTICIPANTPROXY_H



More information about the openrtm-commit mailing list