[openrtm-commit:01278] r2473 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 13日 (木) 00:16:33 JST
Author: win-ei
Date: 2014-02-13 00:16:33 +0900 (Thu, 13 Feb 2014)
New Revision: 2473
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.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/MonitoringProxy.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.cpp 2014-02-12 15:16:33 UTC (rev 2473)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+/*!
+ * @file MonitoringProxy.cpp
+ * @brief IMonitoring 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 <IMonitoring.h>
+#include <MonitoringProxy.h>
+#include <SDOPackageTypeConversion.h>
+#include <doil/corba/BasicTypeConversion.h>
+
+namespace SDOPackage
+{
+namespace CORBA
+{
+ /*!
+ * @brief ctor
+ */
+ MonitoringProxy::MonitoringProxy(::CORBA::Object_ptr obj)
+ : ::doil::CORBA::CORBAProxyBase(obj),
+ m_obj(::SDOPackage::Monitoring::_nil()),
+ m_refcount(1)// : m_obj(::SDOPackage::Monitoring::_nil())
+ {
+ m_obj = ::SDOPackage::Monitoring::_narrow(obj);
+ if (::CORBA::is_nil(m_obj)) throw std::bad_alloc();
+ m_obj = ::SDOPackage::Monitoring::_duplicate(m_obj);
+ }
+
+ /*!
+ * @brief dtor
+ */
+ MonitoringProxy::~MonitoringProxy()
+ {
+ ::CORBA::release(m_obj);
+ }
+
+
+}; // namespace CORBA
+}; // namespace SDOPackage
+
+extern "C"
+{
+ void MonitoringProxyCORBAInit(coil::Properties& prop)
+ {
+ doil::CORBA::CORBAManager& mgr(doil::CORBA::CORBAManager::instance());
+ mgr.registerProxyFactory("MonitoringProxy",
+ doil::New< ::SDOPackage::CORBA::MonitoringProxy >,
+ doil::Delete< ::SDOPackage::CORBA::MonitoringProxy >);
+ }
+};
+
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/MonitoringProxy.h 2014-02-12 15:16:33 UTC (rev 2473)
@@ -0,0 +1,75 @@
+// -*- C++ -*-
+/*!
+ * @file MonitoringProxy.h
+ * @brief MonitoringProxy CORBA proxy for doil
+ * @date $Date$
+ * @author This file was automatically generated from SDOPackage.idl
+ * by omniidl/doil backend
+ *
+ * $Id$
+ */
+#ifndef SDOPACKAGE_MONITORINGPROXY_H
+#define SDOPACKAGE_MONITORINGPROXY_H
+
+#include <coil/Properties.h>
+#include <coil/Mutex.h>
+#include <coil/Guard.h>
+#include <doil/corba/CORBAManager.h>
+#include <doil/corba/CORBAProxyBase.h>
+#include <IMonitoring.h>
+#include <rtc/corba/idl/SDOPackageSkel.h>
+
+
+namespace SDOPackage
+{
+namespace CORBA
+{
+
+ class MonitoringProxy
+ : public virtual ::doil::CORBA::CORBAProxyBase,
+ public virtual ::SDOPackage::Local::IMonitoring
+ {
+ typedef coil::Mutex Mutex;
+ typedef coil::Guard<Mutex> Guard;
+ public:
+ MonitoringProxy(::CORBA::Object_ptr obj);
+ virtual ~MonitoringProxy();
+
+
+ const char* id() {return "Monitoring";}
+ 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::Monitoring_ptr m_obj;
+ private:
+ std::string m_name;
+ Mutex m_refcountMutex;
+ int m_refcount;
+ };
+
+}; // namespace CORBA
+}; // namespace SDOPackage
+
+#ifndef SDOPACKAGE_MONITORINGSERVANT_H
+
+
+#endif // SDOPACKAGE_MONITORINGSERVANT_H
+
+extern "C"
+{
+ void MonitoringProxyCORBAInit(coil::Properties& prop);
+};
+
+#endif // SDOPACKAGE_MONITORINGPROXY_H
More information about the openrtm-commit
mailing list