[openrtm-commit:01300] r2495 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 2月 15日 (土) 11:24:21 JST
Author: win-ei
Date: 2014-02-15 11:24:20 +0900 (Sat, 15 Feb 2014)
New Revision: 2495
Added:
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.h
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.cpp
branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.h
Log:
Daily work.
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.cpp 2014-02-15 02:24:20 UTC (rev 2495)
@@ -0,0 +1,135 @@
+// -*- C++ -*-
+/*!
+ * @file PortServiceImpl.h
+ * @brief PortServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <PortServiceImpl.h>
+#include <ExecutionContextImpl.h>
+#include <iostream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+ /*!
+ * @if jp
+ * @class PortServiceImpl
+ * @brief PortServiceServant試験用インプリメントクラス
+ * @else
+ * @class PortServiceImpl
+ * @brief PortService implementation class for PortServiceServant' unittest.
+ * @endif
+ */
+ int PortServiceImpl::count = 0;
+
+ PortServiceImpl::PortServiceImpl()
+ {
+ ++count;
+ m_logger = new Logger();
+ }
+ PortServiceImpl::PortServiceImpl(Logger& aLogger)
+ {
+ ++count;
+ m_logger = &aLogger;
+ }
+
+ PortServiceImpl::~PortServiceImpl()
+ {
+ }
+
+ ::RTC::Local::PortProfile PortServiceImpl::get_port_profile()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_port_profile");
+ }
+ ::RTC::Local::PortProfile ret;
+ return ret;
+ }
+
+ ::RTC::Local::ConnectorProfileList PortServiceImpl::get_connector_profiles()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_connector_profiles");
+ }
+ ::RTC::Local::ConnectorProfileList ret;
+ return ret;
+ }
+
+ ::RTC::Local::ConnectorProfile PortServiceImpl::get_connector_profile(const ::std::string& connector_id)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_connector_profile");
+ }
+ ::RTC::Local::ConnectorProfile ret;
+ return ret;
+ }
+
+ ::RTC::Local::ReturnCode_t PortServiceImpl::connect(::RTC::Local::ConnectorProfile& connector_profile)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("connect");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t PortServiceImpl::disconnect(const ::std::string& connector_id)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("disconnect");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t PortServiceImpl::disconnect_all()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("disconnect_all");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t PortServiceImpl::notify_connect(::RTC::Local::ConnectorProfile& connector_profile)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("notify_connect");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t PortServiceImpl::notify_disconnect(const ::std::string& connector_id)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("notify_disconnect");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+
+
+}; // namespace Local
+}; // namespace SDOPackage
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/PortServiceImpl.h 2014-02-15 02:24:20 UTC (rev 2495)
@@ -0,0 +1,90 @@
+// -*- C++ -*-
+/*!
+ * @file PortServiceImpl.h
+ * @brief PortServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author
+ *
+ * $Id$
+ */
+
+#ifndef PORTSERVICE_IMPL_H
+#define PORTSERVICE_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IPortService.h>
+#include <ExecutionContextImpl.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+ /*!
+ * @if jp
+ * @class PortServiceImpl
+ * @brief PortService試験用インプリメントクラス
+ * @else
+ * @class PortServiceImpl
+ * @brief PortService implementation class for PortServiceServant' unittest.
+ * @endif
+ */
+
+ class PortServiceImpl
+ : public virtual doil::ImplBase,
+ public virtual ::RTC::Local::IPortService,
+ public virtual ::SDOPackage::Local::ISDOService
+
+ {
+ public:
+ PortServiceImpl();
+ PortServiceImpl(Logger& aLogger);
+
+ virtual ~PortServiceImpl();
+
+ virtual ::RTC::Local::PortProfile get_port_profile()
+ throw ();
+
+ virtual ::RTC::Local::ConnectorProfileList get_connector_profiles()
+ throw ();
+
+ virtual ::RTC::Local::ConnectorProfile get_connector_profile(const ::std::string& connector_id)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t connect(::RTC::Local::ConnectorProfile& connector_profile)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t disconnect(const ::std::string& connector_id)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t disconnect_all()
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t notify_connect(::RTC::Local::ConnectorProfile& connector_profile)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t notify_disconnect(const ::std::string& connector_id)
+ throw ();
+
+
+ //ISDOService
+
+ //
+ const char* id() { return "PortService"; }
+ const char* name() { return m_name; }
+ void incRef() { refcount++; }
+ void decRef() { refcount--; }
+ ::UnitTest::Servant::ExecutionContextImpl m_pec;
+ private:
+ static int count;
+ char m_name[32];
+ int refcount;
+ Logger *m_logger;
+ };
+
+}; // namespace Servant
+}; // namespace UnitTest
+
+#endif //
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.cpp (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.cpp 2014-02-15 02:24:20 UTC (rev 2495)
@@ -0,0 +1,422 @@
+// -*- C++ -*-
+/*!
+ * @file RTObjectImpl.h
+ * @brief RTObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <RTObjectImpl.h>
+#include <ExecutionContextImpl.h>
+#include <iostream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+ /*!
+ * @if jp
+ * @class RTObjectImpl
+ * @brief RTObjectServant試験用インプリメントクラス
+ * @else
+ * @class RTObjectImpl
+ * @brief RTObject implementation class for RTObjectServant' unittest.
+ * @endif
+ */
+ int RTObjectImpl::count = 0;
+
+ RTObjectImpl::RTObjectImpl()
+ {
+ ++count;
+ m_logger = new Logger();
+ }
+ RTObjectImpl::RTObjectImpl(Logger& aLogger)
+ {
+ ++count;
+ m_logger = &aLogger;
+ }
+
+ RTObjectImpl::~RTObjectImpl()
+ {
+ }
+
+ ::RTC::Local::ComponentProfile RTObjectImpl::get_component_profile()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_component_profile");
+ }
+ ::RTC::Local::ComponentProfile ret;
+ return ret;
+ }
+
+ ::RTC::Local::PortServiceList RTObjectImpl::get_ports()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_ports");
+ }
+ ::RTC::Local::PortServiceList ret;
+ return ret;
+ }
+
+ //LightweightRTObject
+ ::RTC::Local::ReturnCode_t RTObjectImpl::initialize()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("initialize");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::finalize()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("finalize");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ bool RTObjectImpl::is_alive(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("is_alive");
+ }
+ return true;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::exit()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("exit");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ExecutionContextHandle_t RTObjectImpl::attach_context(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("attach_context");
+ }
+ ::RTC::Local::ExecutionContextHandle_t ret;
+ return ret;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::detach_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("detach_context");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::IExecutionContext* RTObjectImpl::get_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_context");
+ }
+ std::cout<<"010"<<std::endl;
+ ::RTC::Local::IExecutionContext *ret = new ::UnitTest::Servant::ExecutionContextImpl();
+ std::cout<<"020"<<std::endl;
+ //return ret;
+ return (::RTC::Local::IExecutionContext *)&m_pec;
+ }
+
+ ::RTC::Local::ExecutionContextList RTObjectImpl::get_owned_contexts()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_owned_contexts");
+ }
+ ::RTC::Local::ExecutionContextList ret;
+ return ret;
+ }
+
+ ::RTC::Local::ExecutionContextList RTObjectImpl::get_participating_contexts()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_participating_contexts");
+ }
+ ::RTC::Local::ExecutionContextList ret;
+ return ret;
+ }
+
+ ::RTC::Local::ExecutionContextHandle_t RTObjectImpl::get_context_handle(const ::RTC::Local::IExecutionContext* cxt)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_context_handle");
+ }
+ ::RTC::Local::ExecutionContextHandle_t ret;
+ return ret;
+ }
+
+ //
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_initialize()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_initialize");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_finalize()
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_finalize");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_startup(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_startup");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_shutdown(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_shutdown");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_activated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_activated");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_deactivated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_deactivated");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_error(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_error");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_aborting(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ //std::cout<<"size:"<<m_logger->size()<<std::endl;
+ m_logger->push("on_aborting");
+ //std::cout<<"size:"<<m_logger->size()<<std::endl;
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ ::RTC::Local::ReturnCode_t RTObjectImpl::on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ()
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("on_reset");
+ }
+ return RTC::Local::RTC_OK;
+ }
+
+ //SDOSystemElement
+ ::SDOPackage::Local::OrganizationList RTObjectImpl::get_owned_organizations()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_owned_organizations");
+ }
+ ::SDOPackage::Local::OrganizationList ret;
+ return ret;
+ }
+ //SDO
+ ::std::string RTObjectImpl::get_sdo_id()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_sdo_id");
+ }
+ return "bar";
+ }
+
+ ::std::string RTObjectImpl::get_sdo_type()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_sdo_type");
+ }
+ return "bar";
+ }
+
+ ::SDOPackage::Local::DeviceProfile RTObjectImpl::get_device_profile()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_device_profile");
+ }
+ ::SDOPackage::Local::DeviceProfile prof;
+ return prof;
+ }
+
+ ::SDOPackage::Local::ServiceProfileList RTObjectImpl::get_service_profiles()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_service_profiles");
+ }
+ ::SDOPackage::Local::ServiceProfileList profs;
+ return profs;
+ }
+
+ ::SDOPackage::Local::ServiceProfile RTObjectImpl::get_service_profile(const ::std::string& id)
+ throw (::SDOPackage::Local::InvalidParameter,
+ ::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_service_profile");
+ }
+ ::SDOPackage::Local::ServiceProfile prof;
+ return prof;
+ }
+
+ ::SDOPackage::Local::ISDOService* RTObjectImpl::get_sdo_service(const ::std::string& id)
+ throw (::SDOPackage::Local::InvalidParameter,
+ ::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_sdo_service");
+ }
+ ::SDOPackage::Local::ISDOService* ret;
+ return ret;
+ }
+
+ ::SDOPackage::Local::IConfiguration* RTObjectImpl::get_configuration()
+ throw (::SDOPackage::Local::InterfaceNotImplemented,
+ ::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_configuration");
+ }
+ ::SDOPackage::Local::IConfiguration* ret;
+ return ret;
+ }
+
+ ::SDOPackage::Local::IMonitoring* RTObjectImpl::get_monitoring()
+ throw (::SDOPackage::Local::InterfaceNotImplemented,
+ ::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_monitoring");
+ }
+ ::SDOPackage::Local::IMonitoring* ret;
+ return ret;
+ }
+
+ ::SDOPackage::Local::OrganizationList RTObjectImpl::get_organizations()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_organizations");
+ }
+ ::SDOPackage::Local::OrganizationList ret;
+ return ret;
+ }
+
+ ::SDOPackage::Local::NVList RTObjectImpl::get_status_list()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_status_list");
+ }
+ ::SDOPackage::Local::NVList ret;
+ return ret;
+ }
+
+
+ ::std::string RTObjectImpl::get_status(const ::std::string& nme)
+ throw (::SDOPackage::Local::InvalidParameter,
+ ::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError)
+ {
+ if (m_logger != NULL)
+ {
+ m_logger->push("get_status");
+ }
+ return "bar";
+ }
+
+}; // namespace Local
+}; // namespace SDOPackage
Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.h (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/RTObjectImpl.h 2014-02-15 02:24:20 UTC (rev 2495)
@@ -0,0 +1,187 @@
+// -*- C++ -*-
+/*!
+ * @file RTObjectImpl.h
+ * @brief RTObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author
+ *
+ * $Id$
+ */
+
+#ifndef RTOBJECT_IMPL_H
+#define RTOBJECT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IRTObject.h>
+#include <ExecutionContextImpl.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+ /*!
+ * @if jp
+ * @class RTObjectImpl
+ * @brief RTObject試験用インプリメントクラス
+ * @else
+ * @class RTObjectImpl
+ * @brief RTObject implementation class for RTObjectServant' unittest.
+ * @endif
+ */
+
+ class RTObjectImpl
+ : public virtual doil::ImplBase,
+ public virtual ::RTC::Local::IRTObject,
+ public virtual ::RTC::Local::ILightweightRTObject,
+ public virtual ::SDOPackage::Local::ISDO,
+ public virtual ::RTC::Local::IComponentAction,
+ public virtual ::SDOPackage::Local::ISDOSystemElement
+
+ {
+ public:
+ RTObjectImpl();
+ RTObjectImpl(Logger& aLogger);
+
+ virtual ~RTObjectImpl();
+
+ virtual ::RTC::Local::ComponentProfile get_component_profile()
+ throw ();
+
+ virtual ::RTC::Local::PortServiceList get_ports()
+ throw ();
+
+
+ //ILightweightRTObject
+ virtual ::RTC::Local::ReturnCode_t initialize()
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t finalize()
+ throw ();
+
+ virtual bool is_alive(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t exit()
+ throw ();
+
+ virtual ::RTC::Local::ExecutionContextHandle_t attach_context(const ::RTC::Local::IExecutionContext* exec_context)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t detach_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::IExecutionContext* get_context(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ExecutionContextList get_owned_contexts()
+ throw ();
+
+ virtual ::RTC::Local::ExecutionContextList get_participating_contexts()
+ throw ();
+
+ virtual ::RTC::Local::ExecutionContextHandle_t get_context_handle(const ::RTC::Local::IExecutionContext* cxt)
+ throw ();
+
+ //
+ virtual ::RTC::Local::ReturnCode_t on_initialize()
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_finalize()
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_startup(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_shutdown(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_activated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_deactivated(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_aborting(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_error(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ virtual ::RTC::Local::ReturnCode_t on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+ throw ();
+
+ //ISDOSystemElement
+ virtual ::SDOPackage::Local::OrganizationList get_owned_organizations()
+ throw (::SDOPackage::Local::NotAvailable,
+ ::SDOPackage::Local::InternalError);
+
+ //ISDO
+ 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 "RTObject"; }
+ const char* name() { return m_name; }
+ void incRef() { refcount++; }
+ void decRef() { refcount--; }
+ ::UnitTest::Servant::ExecutionContextImpl m_pec;
+ private:
+ static int count;
+ char m_name[32];
+ int refcount;
+ Logger *m_logger;
+ };
+
+}; // namespace Servant
+}; // namespace UnitTest
+
+#endif //
More information about the openrtm-commit
mailing list