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

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 2月 13日 (木) 01:46:20 JST


Author: win-ei
Date: 2014-02-13 01:46:20 +0900 (Thu, 13 Feb 2014)
New Revision: 2479

Added:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.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/RTObjectProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.cpp	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,111 @@
+// -*- C++ -*-
+/*!
+ * @file RTObjectProxy.cpp 
+ * @brief IRTObject 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 <IRTObject.h>
+#include <RTObjectProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC 
+{
+namespace CORBA 
+{
+  /*!
+   * @brief ctor
+   */ 
+  RTObjectProxy::RTObjectProxy(::CORBA::Object_ptr obj)
+   : ::doil::CORBA::CORBAProxyBase(obj),
+     m_obj(::RTC::RTObject::_nil()),
+     m_refcount(1),
+     ::RTC::CORBA::LightweightRTObjectProxy(obj),
+     ::SDOPackage::CORBA::SDOProxy(obj),
+     ::RTC::CORBA::ComponentActionProxy(obj),
+     ::SDOPackage::CORBA::SDOSystemElementProxy(obj)//   : m_obj(::RTC::RTObject::_nil()),
+//     ::RTC::LightweightRTObjectProxy(obj),
+//     ::SDOPackage::SDOProxy(obj),
+//     ::RTC::ComponentActionProxy(obj),
+//     ::SDOPackage::SDOSystemElementProxy(obj)
+  {
+    m_obj = ::RTC::RTObject::_narrow(obj);
+    if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+    m_obj = ::RTC::RTObject::_duplicate(m_obj);
+  }
+
+  /*!
+   * @brief dtor
+   */ 
+  RTObjectProxy::~RTObjectProxy()
+  {
+    ::CORBA::release(m_obj);
+  }
+
+  
+  /*!
+   * @brief get_component_profile 
+   */ 
+  ::RTC::Local::ComponentProfile RTObjectProxy::get_component_profile()
+      throw ()
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::RTC::ComponentProfile* corba_ret;
+    ::RTC::Local::ComponentProfile local_ret;
+    corba_ret = m_obj->get_component_profile();
+
+    // 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_ports 
+   */ 
+  ::RTC::Local::PortServiceList RTObjectProxy::get_ports()
+      throw ()
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::RTC::PortServiceList* corba_ret;
+    ::RTC::Local::PortServiceList local_ret;
+    corba_ret = m_obj->get_ports();
+
+    // 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;
+  }
+
+}; // namespace CORBA
+}; // namespace RTC 
+
+extern "C"
+{
+  void RTObjectProxyCORBAInit(coil::Properties& prop)
+  {
+    doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+    mgr.registerProxyFactory("RTObjectProxy",
+                        doil::New< ::RTC::CORBA::RTObjectProxy >,
+                        doil::Delete< ::RTC::CORBA::RTObjectProxy >);
+  }
+};
+

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/RTObjectProxy.h	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,92 @@
+// -*- C++ -*-
+/*!
+ * @file RTObjectProxy.h 
+ * @brief RTObjectProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_RTOBJECTPROXY_H 
+#define RTC_RTOBJECTPROXY_H 
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IRTObject.h>
+#include <LightweightRTObjectProxy.h>
+#include <SDOProxy.h>
+#include <ComponentActionProxy.h>
+#include <SDOSystemElementProxy.h>
+#include <SDOPackageTypes.h>
+#include <rtc/corba/idl/RTCSkel.h>
+
+
+namespace RTC 
+{
+namespace CORBA 
+{
+
+  class RTObjectProxy 
+  : public virtual ::doil::CORBA::CORBAProxyBase,
+    public virtual ::RTC::CORBA::LightweightRTObjectProxy,
+    public virtual ::SDOPackage::CORBA::SDOProxy,
+    public virtual ::RTC::CORBA::ComponentActionProxy,
+    public virtual ::SDOPackage::CORBA::SDOSystemElementProxy,
+    public virtual ::RTC::Local::IRTObject
+  {
+    typedef coil::Mutex Mutex;
+    typedef coil::Guard<Mutex> Guard;
+  public:
+    RTObjectProxy(::CORBA::Object_ptr obj);
+    virtual ~RTObjectProxy();
+
+    virtual ::RTC::Local::ComponentProfile get_component_profile()
+      throw ();
+
+
+    virtual ::RTC::Local::PortServiceList get_ports()
+      throw ();
+
+
+
+    const char* id() {return "RTObject";}
+    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::RTObject_ptr m_obj;
+  private:
+    std::string m_name;
+    Mutex m_refcountMutex;
+    int m_refcount;
+  };
+
+}; // namespace CORBA
+}; // namespace RTC 
+
+#ifndef RTC_RTOBJECTSERVANT_H 
+
+
+#endif // RTC_RTOBJECTSERVANT_H
+
+extern "C"
+{
+  void RTObjectProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_RTOBJECTPROXY_H

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.cpp	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,334 @@
+// -*- C++ -*-
+/*!
+ * @file SDOProxy.cpp 
+ * @brief ISDO CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated form SDOPackage.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+
+#include <doil/corba/CORBAManager.h>
+#include <ISDO.h>
+#include <SDOProxy.h>
+#include <SDOPackageTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace SDOPackage 
+{
+namespace CORBA 
+{
+  /*!
+   * @brief ctor
+   */ 
+  SDOProxy::SDOProxy(::CORBA::Object_ptr obj)
+   : ::doil::CORBA::CORBAProxyBase(obj),
+     m_obj(::SDOPackage::SDO::_nil()),
+     m_refcount(1),
+     ::SDOPackage::CORBA::SDOSystemElementProxy(obj)//   : m_obj(::SDOPackage::SDO::_nil()),
+//     ::SDOPackage::SDOSystemElementProxy(obj)
+  {
+    m_obj = ::SDOPackage::SDO::_narrow(obj);
+    if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+    m_obj = ::SDOPackage::SDO::_duplicate(m_obj);
+  }
+
+  /*!
+   * @brief dtor
+   */ 
+  SDOProxy::~SDOProxy()
+  {
+    ::CORBA::release(m_obj);
+  }
+
+  
+  /*!
+   * @brief get_sdo_id 
+   */ 
+  ::std::string SDOProxy::get_sdo_id()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    char* corba_ret;
+    ::std::string local_ret;
+    corba_ret = m_obj->get_sdo_id();
+
+    // 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::string_free(corba_ret); 
+    return local_ret;
+  }
+
+  /*!
+   * @brief get_sdo_type 
+   */ 
+  ::std::string SDOProxy::get_sdo_type()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    char* corba_ret;
+    ::std::string local_ret;
+    corba_ret = m_obj->get_sdo_type();
+
+    // 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::string_free(corba_ret); 
+    return local_ret;
+  }
+
+  /*!
+   * @brief get_device_profile 
+   */ 
+  ::SDOPackage::Local::DeviceProfile SDOProxy::get_device_profile()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::DeviceProfile* corba_ret;
+    ::SDOPackage::Local::DeviceProfile local_ret;
+    corba_ret = m_obj->get_device_profile();
+
+    // 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_service_profiles 
+   */ 
+  ::SDOPackage::Local::ServiceProfileList SDOProxy::get_service_profiles()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::ServiceProfileList* corba_ret;
+    ::SDOPackage::Local::ServiceProfileList local_ret;
+    corba_ret = m_obj->get_service_profiles();
+
+    // 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_service_profile 
+   */ 
+  ::SDOPackage::Local::ServiceProfile SDOProxy::get_service_profile(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+    char* _id;
+    local_to_corba(id, _id);
+
+    // Execute the method. 
+    ::SDOPackage::ServiceProfile* corba_ret;
+    ::SDOPackage::Local::ServiceProfile local_ret;
+    corba_ret = m_obj->get_service_profile(_id);
+
+    // 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_sdo_service 
+   */ 
+  ::SDOPackage::Local::ISDOService* SDOProxy::get_sdo_service(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+    char* _id;
+    local_to_corba(id, _id);
+
+    // Execute the method. 
+    ::SDOPackage::SDOService_ptr corba_ret;
+    ::SDOPackage::Local::ISDOService* local_ret;
+    corba_ret = m_obj->get_sdo_service(_id);
+
+    // 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_configuration 
+   */ 
+  ::SDOPackage::Local::IConfiguration* SDOProxy::get_configuration()
+      throw (::SDOPackage::Local::InterfaceNotImplemented,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::Configuration_ptr corba_ret;
+    ::SDOPackage::Local::IConfiguration* local_ret;
+    corba_ret = m_obj->get_configuration();
+
+    // 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_monitoring 
+   */ 
+  ::SDOPackage::Local::IMonitoring* SDOProxy::get_monitoring()
+      throw (::SDOPackage::Local::InterfaceNotImplemented,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::Monitoring_ptr corba_ret;
+    ::SDOPackage::Local::IMonitoring* local_ret;
+    corba_ret = m_obj->get_monitoring();
+
+    // 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_organizations 
+   */ 
+  ::SDOPackage::Local::OrganizationList SDOProxy::get_organizations()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::OrganizationList* corba_ret;
+    ::SDOPackage::Local::OrganizationList local_ret;
+    corba_ret = m_obj->get_organizations();
+
+    // 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_status_list 
+   */ 
+  ::SDOPackage::Local::NVList SDOProxy::get_status_list()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::NVList* corba_ret;
+    ::SDOPackage::Local::NVList local_ret;
+    corba_ret = m_obj->get_status_list();
+
+    // 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_status 
+   */ 
+  ::std::string SDOProxy::get_status(const ::std::string& nme)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+    char* _nme;
+    local_to_corba(nme, _nme);
+
+    // Execute the method. 
+    ::CORBA::Any* corba_ret;
+    ::std::string local_ret;
+    corba_ret = m_obj->get_status(_nme);
+
+    // 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;
+  }
+
+}; // namespace CORBA
+}; // namespace SDOPackage 
+
+extern "C"
+{
+  void SDOProxyCORBAInit(coil::Properties& prop)
+  {
+    doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+    mgr.registerProxyFactory("SDOProxy",
+                        doil::New< ::SDOPackage::CORBA::SDOProxy >,
+                        doil::Delete< ::SDOPackage::CORBA::SDOProxy >);
+  }
+};
+

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOProxy.h	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,137 @@
+// -*- C++ -*-
+/*!
+ * @file SDOProxy.h 
+ * @brief SDOProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from SDOPackage.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef SDOPACKAGE_SDOPROXY_H 
+#define SDOPACKAGE_SDOPROXY_H 
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <ISDO.h>
+#include <SDOSystemElementProxy.h>
+#include <rtc/corba/idl/SDOPackageSkel.h>
+
+
+namespace SDOPackage 
+{
+namespace CORBA 
+{
+
+  class SDOProxy 
+  : public virtual ::doil::CORBA::CORBAProxyBase,
+    public virtual ::SDOPackage::CORBA::SDOSystemElementProxy,
+    public virtual ::SDOPackage::Local::ISDO
+  {
+    typedef coil::Mutex Mutex;
+    typedef coil::Guard<Mutex> Guard;
+  public:
+    SDOProxy(::CORBA::Object_ptr obj);
+    virtual ~SDOProxy();
+
+    virtual ::std::string get_sdo_id()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::std::string get_sdo_type()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::DeviceProfile get_device_profile()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::ServiceProfileList get_service_profiles()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::ServiceProfile get_service_profile(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::ISDOService* get_sdo_service(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::IConfiguration* get_configuration()
+      throw (::SDOPackage::Local::InterfaceNotImplemented,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::IMonitoring* get_monitoring()
+      throw (::SDOPackage::Local::InterfaceNotImplemented,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::OrganizationList get_organizations()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::SDOPackage::Local::NVList get_status_list()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    virtual ::std::string get_status(const ::std::string& nme)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+
+    const char* id() {return "SDO";}
+    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:
+    ::SDOPackage::SDO_ptr m_obj;
+  private:
+    std::string m_name;
+    Mutex m_refcountMutex;
+    int m_refcount;
+  };
+
+}; // namespace CORBA
+}; // namespace SDOPackage 
+
+#ifndef SDOPACKAGE_SDOSERVANT_H 
+
+
+#endif // SDOPACKAGE_SDOSERVANT_H
+
+extern "C"
+{
+  void SDOProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // SDOPACKAGE_SDOPROXY_H

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.cpp	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,81 @@
+// -*- C++ -*-
+/*!
+ * @file SDOSystemElementProxy.cpp 
+ * @brief ISDOSystemElement CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated form SDOPackage.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+
+#include <doil/corba/CORBAManager.h>
+#include <ISDOSystemElement.h>
+#include <SDOSystemElementProxy.h>
+#include <SDOPackageTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace SDOPackage 
+{
+namespace CORBA 
+{
+  /*!
+   * @brief ctor
+   */ 
+  SDOSystemElementProxy::SDOSystemElementProxy(::CORBA::Object_ptr obj)
+   : ::doil::CORBA::CORBAProxyBase(obj),
+     m_obj(::SDOPackage::SDOSystemElement::_nil()),
+     m_refcount(1)//   : m_obj(::SDOPackage::SDOSystemElement::_nil())
+  {
+    m_obj = ::SDOPackage::SDOSystemElement::_narrow(obj);
+    if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+    m_obj = ::SDOPackage::SDOSystemElement::_duplicate(m_obj);
+  }
+
+  /*!
+   * @brief dtor
+   */ 
+  SDOSystemElementProxy::~SDOSystemElementProxy()
+  {
+    ::CORBA::release(m_obj);
+  }
+
+  
+  /*!
+   * @brief get_owned_organizations 
+   */ 
+  ::SDOPackage::Local::OrganizationList SDOSystemElementProxy::get_owned_organizations()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+  {
+    // Convert Local to CORBA.
+    // (The direction of the argument is 'in' or 'inout'.)
+
+    // Execute the method. 
+    ::SDOPackage::OrganizationList* corba_ret;
+    ::SDOPackage::Local::OrganizationList local_ret;
+    corba_ret = m_obj->get_owned_organizations();
+
+    // 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;
+  }
+
+}; // namespace CORBA
+}; // namespace SDOPackage 
+
+extern "C"
+{
+  void SDOSystemElementProxyCORBAInit(coil::Properties& prop)
+  {
+    doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+    mgr.registerProxyFactory("SDOSystemElementProxy",
+                        doil::New< ::SDOPackage::CORBA::SDOSystemElementProxy >,
+                        doil::Delete< ::SDOPackage::CORBA::SDOSystemElementProxy >);
+  }
+};
+

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/SDOSystemElementProxy.h	2014-02-12 16:46:20 UTC (rev 2479)
@@ -0,0 +1,80 @@
+// -*- C++ -*-
+/*!
+ * @file SDOSystemElementProxy.h 
+ * @brief SDOSystemElementProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from SDOPackage.idl 
+ *         by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef SDOPACKAGE_SDOSYSTEMELEMENTPROXY_H 
+#define SDOPACKAGE_SDOSYSTEMELEMENTPROXY_H 
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <ISDOSystemElement.h>
+#include <rtc/corba/idl/SDOPackageSkel.h>
+
+
+namespace SDOPackage 
+{
+namespace CORBA 
+{
+
+  class SDOSystemElementProxy 
+  : public virtual ::doil::CORBA::CORBAProxyBase,
+    public virtual ::SDOPackage::Local::ISDOSystemElement
+  {
+    typedef coil::Mutex Mutex;
+    typedef coil::Guard<Mutex> Guard;
+  public:
+    SDOSystemElementProxy(::CORBA::Object_ptr obj);
+    virtual ~SDOSystemElementProxy();
+
+    virtual ::SDOPackage::Local::OrganizationList get_owned_organizations()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+
+    const char* id() {return "SDOSystemElement";}
+    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:
+    ::SDOPackage::SDOSystemElement_ptr m_obj;
+  private:
+    std::string m_name;
+    Mutex m_refcountMutex;
+    int m_refcount;
+  };
+
+}; // namespace CORBA
+}; // namespace SDOPackage 
+
+#ifndef SDOPACKAGE_SDOSYSTEMELEMENTSERVANT_H 
+
+
+#endif // SDOPACKAGE_SDOSYSTEMELEMENTSERVANT_H
+
+extern "C"
+{
+  void SDOSystemElementProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // SDOPACKAGE_SDOSYSTEMELEMENTPROXY_H



More information about the openrtm-commit mailing list