[openrtm-commit:01263] r2458 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 12日 (水) 17:50:05 JST
Author: win-ei
Date: 2014-02-12 17:50:05 +0900 (Wed, 12 Feb 2014)
New Revision: 2458
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.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/ExecutionContextServiceProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.cpp 2014-02-12 08:50:05 UTC (rev 2458)
@@ -0,0 +1,84 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextServiceProxy.cpp
+ * @brief IExecutionContextService 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 <IExecutionContextService.h>
+#include <ExecutionContextServiceProxy.h>
+#include <RTCTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace RTC
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ ExecutionContextServiceProxy::ExecutionContextServiceProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::RTC::ExecutionContextService::_nil()),
+ m_refcount(1),
+ ::RTC::CORBA::ExecutionContextProxy(obj),
+ ::SDOPackage::CORBA::SDOServiceProxy(obj)// : m_obj(::RTC::ExecutionContextService::_nil()),
+// ::RTC::ExecutionContextProxy(obj),
+// ::SDOPackage::SDOServiceProxy(obj)
+ {
+ m_obj = ::RTC::ExecutionContextService::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::RTC::ExecutionContextService::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ ExecutionContextServiceProxy::~ExecutionContextServiceProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+ /*!
+ * @brief get_profile
+ */
+ ::RTC::Local::ExecutionContextProfile ExecutionContextServiceProxy::get_profile()
+ throw ()
+ {
+ // Convert Local to CORBA.
+ // (The direction of the argument is 'in' or 'inout'.)
+
+ // Execute the method.
+ ::RTC::ExecutionContextProfile* corba_ret;
+ ::RTC::Local::ExecutionContextProfile local_ret;
+ corba_ret = m_obj->get_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;
+ }
+
+}; // namespace CORBA
+}; // namespace RTC
+
+extern "C"
+{
+ void ExecutionContextServiceProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("ExecutionContextServiceProxy",
+ doil::New< ::RTC::CORBA::ExecutionContextServiceProxy >,
+ doil::Delete< ::RTC::CORBA::ExecutionContextServiceProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/ExecutionContextServiceProxy.h 2014-02-12 08:50:05 UTC (rev 2458)
@@ -0,0 +1,83 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextServiceProxy.h
+ * @brief ExecutionContextServiceProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from RTC.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef RTC_EXECUTIONCONTEXTSERVICEPROXY_H
+#define RTC_EXECUTIONCONTEXTSERVICEPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IExecutionContextService.h>
+#include <ExecutionContextProxy.h>
+#include <SDOServiceProxy.h>
+#include <SDOPackageTypes.h>
+
+
+namespace RTC
+{
+namespace CORBA
+{
+
+ class ExecutionContextServiceProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::RTC::CORBA::ExecutionContextProxy,
+ public virtual ::SDOPackage::CORBA::SDOServiceProxy,
+ public virtual ::RTC::Local::IExecutionContextService
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ ExecutionContextServiceProxy(::CORBA::Object_ptr obj);
+ virtual ~ExecutionContextServiceProxy();
+
+ virtual ::RTC::Local::ExecutionContextProfile get_profile()
+ throw ();
+
+
+
+ const char* id() {return "ExecutionContextService";}
+ 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::ExecutionContextService_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace RTC
+
+#ifndef RTC_EXECUTIONCONTEXTSERVICESERVANT_H
+
+
+#endif // RTC_EXECUTIONCONTEXTSERVICESERVANT_H
+
+extern "C"
+{
+ void ExecutionContextServiceProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // RTC_EXECUTIONCONTEXTSERVICEPROXY_H
More information about the openrtm-commit
mailing list