[openrtm-commit:01294] r2489 - branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 2月 15日 (土) 01:55:13 JST


Author: win-ei
Date: 2014-02-15 01:55:13 +0900 (Sat, 15 Feb 2014)
New Revision: 2489

Added:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.h
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.h
Log:
Daily work. 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,81 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentActionImpl.h
+ * @brief DataFlowComponentActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <DataFlowComponentActionImpl.h>
+#include <iostream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class DataFlowComponentActionImpl
+   * @brief DataFlowComponentActionServant試験用インプリメントクラス
+   * @else
+   * @class DataFlowComponentActionImpl
+   * @brief DataFlowComponentAction implementation class for DataFlowComponentActionServant' unittest.
+   * @endif
+   */
+   int DataFlowComponentActionImpl::count = 0;
+
+    DataFlowComponentActionImpl::DataFlowComponentActionImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    DataFlowComponentActionImpl::DataFlowComponentActionImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    DataFlowComponentActionImpl::~DataFlowComponentActionImpl()
+    {
+    }
+
+    ::RTC::Local::ReturnCode_t DataFlowComponentActionImpl::on_execute(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_execute");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t DataFlowComponentActionImpl::on_state_update(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_state_update");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t DataFlowComponentActionImpl::on_rate_changed(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_rate_changed");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentActionImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,70 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentActionImpl.h
+ * @brief DataFlowComponentActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef DATAFLOWCOMPONENTACTION_IMPL_H
+#define DATAFLOWCOMPONENTACTION_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IDataFlowComponentAction.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class DataFlowComponentActionImpl
+   * @brief DataFlowComponentAction試験用インプリメントクラス
+   * @else
+   * @class DataFlowComponentActionImpl
+   * @brief DataFlowComponentAction implementation class for DataFlowComponentActionServant' unittest.
+   * @endif
+   */
+
+  class DataFlowComponentActionImpl
+   : public virtual doil::ImplBase,
+     public virtual RTC::Local::IDataFlowComponentAction
+
+  {
+  public:
+    DataFlowComponentActionImpl();
+    DataFlowComponentActionImpl(Logger& aLogger);
+
+    virtual ~DataFlowComponentActionImpl();
+
+
+    virtual ::RTC::Local::ReturnCode_t on_execute(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t on_state_update(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t on_rate_changed(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+
+    const char* id() { return "DataFlowComponentAction"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/DataFlowComponentImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,52 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentImpl.h
+ * @brief DataFlowComponentImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <DataFlowComponentImpl.h>
+#include <iostream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class DataFlowComponentImpl
+   * @brief DataFlowComponentServant試験用インプリメントクラス
+   * @else
+   * @class DataFlowComponentImpl
+   * @brief DataFlowComponent implementation class for DataFlowComponentServant' unittest.
+   * @endif
+   */
+   int DataFlowComponentImpl::count = 0;
+
+    DataFlowComponentImpl::DataFlowComponentImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    DataFlowComponentImpl::DataFlowComponentImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    DataFlowComponentImpl::~DataFlowComponentImpl()
+    {
+    }
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/DataFlowComponentImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,64 @@
+// -*- C++ -*-
+/*!
+ * @file DataFlowComponentImpl.h
+ * @brief DataFlowComponentImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef DATAFLOWCOMPONENT_IMPL_H
+#define DATAFLOWCOMPONENT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IDataFlowComponent.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class DataFlowComponentImpl
+   * @brief DataFlowComponent試験用インプリメントクラス
+   * @else
+   * @class DataFlowComponentImpl
+   * @brief DataFlowComponent implementation class for DataFlowComponentServant' unittest.
+   * @endif
+   */
+
+  class DataFlowComponentImpl
+   : public virtual doil::ImplBase,
+     public virtual RTC::Local::ILightweightRTObject,
+     public virtual RTC::Local::IDataFlowComponent,
+     public virtual RTC::Local::IComponentAction
+
+  {
+  public:
+    DataFlowComponentImpl();
+    DataFlowComponentImpl(Logger& aLogger);
+
+    virtual ~DataFlowComponentImpl();
+
+
+
+
+    const char* id() { return "DataFlowComponent"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/ExecutionContextImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,273 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextImpl.h
+ * @brief ExecutionContextImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <ExecutionContextImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class ExecutionContextImpl
+   * @brief ExecutionContextServant試験用インプリメントクラス
+   * @else
+   * @class ExecutionContextImpl
+   * @brief ExecutionContext implementation class for LightweightRTObjecServant' unittest.
+   * @endif
+   */
+   int ExecutionContextImpl::count = 0;
+
+    ExecutionContextImpl::ExecutionContextImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    ExecutionContextImpl::ExecutionContextImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    ExecutionContextImpl::~ExecutionContextImpl()
+    {
+    }
+
+
+    bool ExecutionContextImpl::is_running()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("is_running");
+          }
+        return true;
+    }
+
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::start()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("start");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::stop()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("stop");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    double ExecutionContextImpl::get_rate()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_rate");
+          }
+        return 100.0;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::set_rate(double rate)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_rate");
+            std::ostringstream oss;
+            oss << rate;
+            std::string str(oss.str());
+            m_logger->push(str);
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::add_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("add_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::remove_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("remove_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::activate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("activate_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::deactivate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("deactivate_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::reset_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("reset_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::LifeCycleState ExecutionContextImpl::get_component_state(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_component_state");
+          }
+        return ::RTC::Local::CREATED_STATE;
+    }
+
+    ::RTC::Local::ExecutionKind ExecutionContextImpl::get_kind()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_kind");
+          }
+        return ::RTC::Local::PERIODIC;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::on_initialize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_initialize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::on_finalize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_finalize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextImpl::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 ExecutionContextImpl::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 ExecutionContextImpl::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 ExecutionContextImpl::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 ExecutionContextImpl::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 ExecutionContextImpl::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 ExecutionContextImpl::on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_reset");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,125 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextImpl.h
+ * @brief ExecutionContextImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef EXECUTIONCONTEXT_IMPL_H
+#define EXECUTIONCONTEXT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IExecutionContext.h>
+#include <IComponentAction.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class ExecutionContextImpl
+   * @brief ExecutionContext試験用インプリメントクラス
+   * @else
+   * @class ExecutionContextImpl
+   * @brief ExecutionContext implementation class for ExecutionContextServant' unittest.
+   * @endif
+   */
+
+  class ExecutionContextImpl
+   : public virtual doil::ImplBase,
+     public virtual RTC::Local::IComponentAction,
+     public virtual RTC::Local::IExecutionContext
+
+  {
+  public:
+    ExecutionContextImpl();
+    ExecutionContextImpl(Logger& aLogger);
+
+    virtual ~ExecutionContextImpl();
+
+    virtual bool is_running()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t start()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t stop()
+      throw ();
+
+    virtual double get_rate()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t set_rate(double rate)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t add_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t remove_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t activate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t deactivate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t reset_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::LifeCycleState get_component_state(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ExecutionKind get_kind()
+      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 ();
+
+    const char* id() { return "ExecutionContext"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/ExecutionContextServiceImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,287 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextServiceImpl.h
+ * @brief ExecutionContextServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <ExecutionContextServiceImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class ExecutionContextServiceImpl
+   * @brief ExecutionContextServiceServant試験用インプリメントクラス
+   * @else
+   * @class ExecutionContextServiceImpl
+   * @brief ExecutionContextService implementation class for LightweightRTObjecServant' unittest.
+   * @endif
+   */
+   int ExecutionContextServiceImpl::count = 0;
+
+    ExecutionContextServiceImpl::ExecutionContextServiceImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    ExecutionContextServiceImpl::ExecutionContextServiceImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    ExecutionContextServiceImpl::~ExecutionContextServiceImpl()
+    {
+    }
+
+
+    ::RTC::Local::ExecutionContextProfile ExecutionContextServiceImpl::get_profile()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_profile");
+          }
+        ::RTC::Local::ExecutionContextProfile ret;
+        m_ret.kind = ::RTC::Local::PERIODIC;
+        m_ret.rate = 100.0;
+        m_ret.owner = NULL;
+        return m_ret;
+    }
+
+    bool ExecutionContextServiceImpl::is_running()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("is_running");
+          }
+        return true;
+    }
+
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::start()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("start");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::stop()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("stop");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    double ExecutionContextServiceImpl::get_rate()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_rate");
+          }
+        return 100.0;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::set_rate(double rate)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_rate");
+            std::ostringstream oss;
+            oss << rate;
+            std::string str(oss.str());
+            m_logger->push(str);
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::add_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("add_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::remove_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("remove_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::activate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("activate_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::deactivate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("deactivate_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::reset_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("reset_component");
+          }
+        return ::RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::LifeCycleState ExecutionContextServiceImpl::get_component_state(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_component_state");
+          }
+        return ::RTC::Local::CREATED_STATE;
+    }
+
+    ::RTC::Local::ExecutionKind ExecutionContextServiceImpl::get_kind()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_kind");
+          }
+        return ::RTC::Local::PERIODIC;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::on_initialize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_initialize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::on_finalize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_finalize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::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 ExecutionContextServiceImpl::on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_reset");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ExecutionContextServiceImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,132 @@
+// -*- C++ -*-
+/*!
+ * @file ExecutionContextServiceImpl.h
+ * @brief ExecutionContextServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef EXECUTIONCONTEXTSERVICE_IMPL_H
+#define EXECUTIONCONTEXTSERVICE_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IExecutionContextService.h>
+#include <IExecutionContext.h>
+#include <ISDOService.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class ExecutionContextServiceImpl
+   * @brief ExecutionContextService試験用インプリメントクラス
+   * @else
+   * @class ExecutionContextServiceImpl
+   * @brief ExecutionContextService implementation class for ExecutionContextServiceServant' unittest.
+   * @endif
+   */
+
+  class ExecutionContextServiceImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IExecutionContext,
+     public virtual ::SDOPackage::Local::ISDOService,
+     public virtual ::RTC::Local::IExecutionContextService
+
+  {
+  public:
+    ExecutionContextServiceImpl();
+    ExecutionContextServiceImpl(Logger& aLogger);
+
+    virtual ~ExecutionContextServiceImpl();
+    
+    virtual ::RTC::Local::ExecutionContextProfile get_profile()
+      throw ();
+
+    //
+    virtual bool is_running()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t start()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t stop()
+      throw ();
+
+    virtual double get_rate()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t set_rate(double rate)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t add_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t remove_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t activate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t deactivate_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t reset_component(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::LifeCycleState get_component_state(const ::RTC::Local::ILightweightRTObject* comp)
+      throw ();
+
+    virtual ::RTC::Local::ExecutionKind get_kind()
+      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 ();
+
+    const char* id() { return "ExecutionContextService"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+    ::RTC::Local::ExecutionContextProfile m_ret;
+  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/FsmObjectImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+/*!
+ * @file FsmObjectImpl.h
+ * @brief FsmObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <FsmObjectImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class FsmObjectImpl
+   * @brief FsmObjectServant試験用インプリメントクラス
+   * @else
+   * @class FsmObjectImpl
+   * @brief FsmObject implementation class for FsmObjectServant' unittest.
+   * @endif
+   */
+   int FsmObjectImpl::count = 0;
+
+    FsmObjectImpl::FsmObjectImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    FsmObjectImpl::FsmObjectImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    FsmObjectImpl::~FsmObjectImpl()
+    {
+    }
+
+    ::RTC::Local::ReturnCode_t FsmObjectImpl::send_stimulus(const ::std::string&message, ::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("send_stimulus");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmObjectImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,64 @@
+// -*- C++ -*-
+/*!
+ * @file FsmObjectImpl.h
+ * @brief FsmObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef FSMOBJECT_IMPL_H
+#define FSMOBJECT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IFsmObject.h>
+#include <IExecutionContext.h>
+#include <ISDOService.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class FsmObjectImpl
+   * @brief FsmObject試験用インプリメントクラス
+   * @else
+   * @class FsmObjectImpl
+   * @brief FsmObject implementation class for FsmObjectServant' unittest.
+   * @endif
+   */
+
+  class FsmObjectImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IFsmObject
+
+  {
+  public:
+    FsmObjectImpl();
+    FsmObjectImpl(Logger& aLogger);
+
+    virtual ~FsmObjectImpl();
+    
+    virtual ::RTC::Local::ReturnCode_t send_stimulus(const ::std::string&message, ::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+    const char* id() { return "FsmObject"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/FsmParticipantActionImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,66 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantActionImpl.h
+ * @brief FsmParticipantActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <FsmParticipantActionImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class FsmParticipantActionImpl
+   * @brief FsmParticipantActionServant試験用インプリメントクラス
+   * @else
+   * @class FsmParticipantActionImpl
+   * @brief FsmParticipantAction implementation class for FsmParticipantActionServant' unittest.
+   * @endif
+   */
+   int FsmParticipantActionImpl::count = 0;
+
+    FsmParticipantActionImpl::FsmParticipantActionImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    FsmParticipantActionImpl::FsmParticipantActionImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    FsmParticipantActionImpl::~FsmParticipantActionImpl()
+    {
+    }
+
+    ::RTC::Local::ReturnCode_t FsmParticipantActionImpl::on_action(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_action");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmParticipantActionImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,63 @@
+// -*- C++ -*-
+/*!
+ * @file FsmParticipantActionImpl.h
+ * @brief FsmParticipantActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef FSMPARTICIPANTACTION_IMPL_H
+#define FSMPARTICIPANTACTION_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IFsmParticipantAction.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class FsmParticipantActionImpl
+   * @brief FsmParticipantAction試験用インプリメントクラス
+   * @else
+   * @class FsmParticipantActionImpl
+   * @brief FsmParticipantAction implementation class for FsmParticipantActionServant' unittest.
+   * @endif
+   */
+
+  class FsmParticipantActionImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IFsmParticipantAction
+
+  {
+  public:
+    FsmParticipantActionImpl();
+    FsmParticipantActionImpl(Logger& aLogger);
+
+    virtual ~FsmParticipantActionImpl();
+    
+    virtual ::RTC::Local::ReturnCode_t on_action(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+
+    const char* id() { return "FsmParticipantAction"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/FsmServiceImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,77 @@
+// -*- C++ -*-
+/*!
+ * @file FsmServiceImpl.h
+ * @brief FsmServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <FsmServiceImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class FsmServiceImpl
+   * @brief FsmServiceServant試験用インプリメントクラス
+   * @else
+   * @class FsmServiceImpl
+   * @brief FsmService implementation class for FsmServiceServant' unittest.
+   * @endif
+   */
+   int FsmServiceImpl::count = 0;
+
+    FsmServiceImpl::FsmServiceImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    FsmServiceImpl::FsmServiceImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    FsmServiceImpl::~FsmServiceImpl()
+    {
+    }
+
+    ::RTC::Local::FsmProfile FsmServiceImpl::get_fsm_profile()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_fsm_profile");
+          }
+        ::RTC::Local::FsmProfile ret;
+        return ret;
+    }
+
+    ::RTC::Local::ReturnCode_t FsmServiceImpl::set_fsm_profile(const ::RTC::Local::FsmProfile& fsm_profile)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_fsm_profile");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/FsmServiceImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,67 @@
+// -*- C++ -*-
+/*!
+ * @file FsmServiceImpl.h
+ * @brief FsmServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef FSMPARTICIPANTACTION_IMPL_H
+#define FSMPARTICIPANTACTION_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IFsmService.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class FsmServiceImpl
+   * @brief FsmService試験用インプリメントクラス
+   * @else
+   * @class FsmServiceImpl
+   * @brief FsmService implementation class for FsmServiceServant' unittest.
+   * @endif
+   */
+
+  class FsmServiceImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IFsmService,
+     public virtual ::SDOPackage::Local::ISDOService
+
+  {
+  public:
+    FsmServiceImpl();
+    FsmServiceImpl(Logger& aLogger);
+
+    virtual ~FsmServiceImpl();
+    
+    virtual ::RTC::Local::FsmProfile get_fsm_profile()
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t set_fsm_profile(const ::RTC::Local::FsmProfile& fsm_profile)
+      throw ();
+
+
+    const char* id() { return "FsmService"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/LightweightRTObjectImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,254 @@
+// -*- C++ -*-
+/*!
+ * @file LightweightRTObjectImpl.h
+ * @brief LightweightRTObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <LightweightRTObjectImpl.h>
+#include <ExecutionContextImpl.h>
+#include <iostream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class LightweightRTObjectImpl
+   * @brief LightweightRTObjectServant試験用インプリメントクラス
+   * @else
+   * @class LightweightRTObjectImpl
+   * @brief LightweightRTObject implementation class for LightweightRTObjecServant' unittest.
+   * @endif
+   */
+   int LightweightRTObjectImpl::count = 0;
+
+    LightweightRTObjectImpl::LightweightRTObjectImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+      //m_pec = new ::UnitTest::Servant::ExecutionContextImpl();
+    } 
+    LightweightRTObjectImpl::LightweightRTObjectImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+      //m_pec = new ::UnitTest::Servant::ExecutionContextImpl();
+    } 
+
+    LightweightRTObjectImpl::~LightweightRTObjectImpl()
+    {
+    }
+
+    ::RTC::Local::ReturnCode_t LightweightRTObjectImpl::initialize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("initialize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t LightweightRTObjectImpl::finalize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("finalize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    bool LightweightRTObjectImpl::is_alive(const ::RTC::Local::IExecutionContext* exec_context)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("is_alive");
+          }
+        return true;
+    }
+
+    ::RTC::Local::ReturnCode_t LightweightRTObjectImpl::exit()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("exit");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ExecutionContextHandle_t LightweightRTObjectImpl::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 LightweightRTObjectImpl::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* LightweightRTObjectImpl::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 LightweightRTObjectImpl::get_owned_contexts()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_owned_contexts");
+          }
+        ::RTC::Local::ExecutionContextList ret;
+        return ret;
+    }
+
+    ::RTC::Local::ExecutionContextList LightweightRTObjectImpl::get_participating_contexts()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_participating_contexts");
+          }
+        ::RTC::Local::ExecutionContextList ret;
+        return ret;
+    }
+
+    ::RTC::Local::ExecutionContextHandle_t LightweightRTObjectImpl::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 LightweightRTObjectImpl::on_initialize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_initialize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t LightweightRTObjectImpl::on_finalize()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_finalize");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+    ::RTC::Local::ReturnCode_t LightweightRTObjectImpl::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 LightweightRTObjectImpl::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 LightweightRTObjectImpl::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 LightweightRTObjectImpl::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 LightweightRTObjectImpl::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 LightweightRTObjectImpl::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 LightweightRTObjectImpl::on_reset(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_reset");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/LightweightRTObjectImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,123 @@
+// -*- C++ -*-
+/*!
+ * @file LightweightRTObjectImpl.h
+ * @brief LightweightRTObjectImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef LIGHTWEIGHTRTOBJECT_IMPL_H
+#define LIGHTWEIGHTRTOBJECT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <ILightweightRTObject.h>
+#include <ExecutionContextImpl.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class LightweightRTObjectImpl
+   * @brief LightweightRTObject試験用インプリメントクラス
+   * @else
+   * @class LightweightRTObjectImpl
+   * @brief LightweightRTObject implementation class for LightweightRTObjectServant' unittest.
+   * @endif
+   */
+
+  class LightweightRTObjectImpl
+   : public virtual doil::ImplBase,
+     public virtual RTC::Local::IComponentAction,
+     public virtual RTC::Local::ILightweightRTObject
+
+  {
+  public:
+    LightweightRTObjectImpl();
+    LightweightRTObjectImpl(Logger& aLogger);
+
+    virtual ~LightweightRTObjectImpl();
+
+
+    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 ();
+
+    //
+    const char* id() { return "LightweightRTObject"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  private:
+    static int count;
+    char m_name[32];
+    int refcount;
+    Logger *m_logger;
+    //::RTC::Local::IExecutionContext m_pec;
+    ::UnitTest::Servant::ExecutionContextImpl m_pec;
+  };
+
+}; // namespace Servant
+}; // namespace UnitTest
+
+#endif  // 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,122 @@
+// -*- C++ -*-
+/*!
+ * @file ModeCapableImpl.h
+ * @brief ModeCapableImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <ModeCapableImpl.h>
+#include <ModeImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class ModeCapableImpl
+   * @brief ModeCapableServant試験用インプリメントクラス
+   * @else
+   * @class ModeCapableImpl
+   * @brief ModeCapable implementation class for ModeCapableServant' unittest.
+   * @endif
+   */
+   int ModeCapableImpl::count = 0;
+
+    ModeCapableImpl::ModeCapableImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    ModeCapableImpl::ModeCapableImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    ModeCapableImpl::~ModeCapableImpl()
+    {
+    }
+
+    ::RTC::Local::IMode* ModeCapableImpl::get_default_mode()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_fsm_profile");
+          }
+        //ModeImpl* lo_ret = new ModeImpl();
+        ::RTC::Local::IMode* ret; 
+        return ret;
+    }
+
+    ::RTC::Local::IMode* ModeCapableImpl::get_current_mode()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_current_mode");
+          }
+        //::RTC::Local::IMode *ret = NULL;
+        return NULL;
+    }
+
+    ::RTC::Local::IMode* ModeCapableImpl::get_current_mode_in_context(const ::RTC::Local::IExecutionContext* exec_context)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_current_mode_in_context");
+          }
+        //::RTC::Local::IMode *ret = NULL;
+        return NULL;
+    }
+
+    ::RTC::Local::IMode* ModeCapableImpl::get_pending_mode()
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_pending_mode");
+          }
+        //::RTC::Local::IMode *ret = NULL;
+        return NULL;
+    }
+
+    ::RTC::Local::IMode* ModeCapableImpl::get_pending_mode_in_context(const ::RTC::Local::IExecutionContext* exec_context)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_pending_mode_in_context");
+          }
+        //::RTC::Local::IMode ret = *NULL;
+        return NULL;
+    }
+
+    ::RTC::Local::ReturnCode_t ModeCapableImpl::set_mode(const ::RTC::Local::IMode*new_mode, bool immediate)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_mode");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeCapableImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,78 @@
+// -*- C++ -*-
+/*!
+ * @file ModeCapableImpl.h
+ * @brief ModeCapableImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef MODECAPABLE_IMPL_H
+#define MODECAPABLE_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IModeCapable.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class ModeCapableImpl
+   * @brief ModeCapable試験用インプリメントクラス
+   * @else
+   * @class ModeCapableImpl
+   * @brief ModeCapable implementation class for ModeCapableServant' unittest.
+   * @endif
+   */
+
+  class ModeCapableImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IModeCapable
+
+  {
+  public:
+    ModeCapableImpl();
+    ModeCapableImpl(Logger& aLogger);
+
+    virtual ~ModeCapableImpl();
+    
+    virtual ::RTC::Local::IMode* get_default_mode()
+      throw ();
+
+    virtual ::RTC::Local::IMode* get_current_mode()
+      throw ();
+
+    virtual ::RTC::Local::IMode* get_current_mode_in_context(const ::RTC::Local::IExecutionContext* exec_context)
+      throw ();
+
+    virtual ::RTC::Local::IMode* get_pending_mode()
+      throw ();
+
+    virtual ::RTC::Local::IMode* get_pending_mode_in_context(const ::RTC::Local::IExecutionContext* exec_context)
+      throw ();
+
+    virtual ::RTC::Local::ReturnCode_t set_mode(const ::RTC::Local::IMode*new_mode, bool immediate)
+      throw ();
+
+
+    const char* id() { return "ModeCapable"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/ModeImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,56 @@
+// -*- C++ -*-
+/*!
+ * @file ModeImpl.h
+ * @brief ModeImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <ModeImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class ModeImpl
+   * @brief ModeServant試験用インプリメントクラス
+   * @else
+   * @class ModeImpl
+   * @brief Mode implementation class for ModeServant' unittest.
+   * @endif
+   */
+   int ModeImpl::count = 0;
+
+    ModeImpl::ModeImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    ModeImpl::ModeImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    ModeImpl::~ModeImpl()
+    {
+    }
+
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/ModeImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+/*!
+ * @file ModeImpl.h
+ * @brief ModeImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef MODECAPABLE_IMPL_H
+#define MODECAPABLE_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IMode.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class ModeImpl
+   * @brief Mode試験用インプリメントクラス
+   * @else
+   * @class ModeImpl
+   * @brief Mode implementation class for ModeServant' unittest.
+   * @endif
+   */
+
+  class ModeImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IMode
+
+  {
+  public:
+    ModeImpl();
+    ModeImpl(Logger& aLogger);
+
+    virtual ~ModeImpl();
+    
+
+
+    const char* id() { return "Mode"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/MultiModeComponentActionImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+/*!
+ * @file MultiModeComponentActionImpl.h
+ * @brief MultiModeComponentActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <MultiModeComponentActionImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class MultiModeComponentActionImpl
+   * @brief MultiModeComponentActionServant試験用インプリメントクラス
+   * @else
+   * @class MultiModeComponentActionImpl
+   * @brief MultiModeComponentAction implementation class for MultiModeComponentActionServant' unittest.
+   * @endif
+   */
+   int MultiModeComponentActionImpl::count = 0;
+
+    MultiModeComponentActionImpl::MultiModeComponentActionImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    MultiModeComponentActionImpl::MultiModeComponentActionImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    MultiModeComponentActionImpl::~MultiModeComponentActionImpl()
+    {
+    }
+
+    ::RTC::Local::ReturnCode_t MultiModeComponentActionImpl::on_mode_changed(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ()
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("on_mode_changed");
+          }
+        return RTC::Local::RTC_OK;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/MultiModeComponentActionImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,63 @@
+// -*- C++ -*-
+/*!
+ * @file MultiModeComponentActionImpl.h
+ * @brief MultiModeComponentActionImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef MULTIMODECOMPONENTACTION_IMPL_H
+#define MULTIMODECOMPONENTACTION_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IMultiModeComponentAction.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class MultiModeComponentActionImpl
+   * @brief MultiModeComponentAction試験用インプリメントクラス
+   * @else
+   * @class MultiModeComponentActionImpl
+   * @brief MultiModeComponentAction implementation class for MultiModeComponentActionServant' unittest.
+   * @endif
+   */
+
+  class MultiModeComponentActionImpl
+   : public virtual doil::ImplBase,
+     public virtual ::RTC::Local::IMultiModeComponentAction
+
+  {
+  public:
+    MultiModeComponentActionImpl();
+    MultiModeComponentActionImpl(Logger& aLogger);
+
+    virtual ~MultiModeComponentActionImpl();
+    
+    virtual ::RTC::Local::ReturnCode_t on_mode_changed(::RTC::Local::ExecutionContextHandle_t exec_handle)
+      throw ();
+
+
+    const char* id() { return "MultiModeComponentAction"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/OrganizationImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,221 @@
+// -*- C++ -*-
+/*!
+ * @file OrganizationImpl.h
+ * @brief OrganizationImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <OrganizationImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class OrganizationImpl
+   * @brief OrganizationServant試験用インプリメントクラス
+   * @else
+   * @class OrganizationImpl
+   * @brief Organization implementation class for OrganizationServant' unittest.
+   * @endif
+   */
+   int OrganizationImpl::count = 0;
+
+    OrganizationImpl::OrganizationImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    OrganizationImpl::OrganizationImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    OrganizationImpl::~OrganizationImpl()
+    {
+    }
+
+    ::std::string OrganizationImpl::get_organization_id()
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_organization_id");
+          }
+        return "_id";
+    }
+
+    ::SDOPackage::Local::OrganizationProperty OrganizationImpl::get_organization_property()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_organization_property");
+          }
+        ::SDOPackage::Local::OrganizationProperty ret;
+        return ret;
+    }
+
+    ::std::string OrganizationImpl::get_organization_property_value(const ::std::string& name)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_organization_property_value");
+          }
+        return name;
+    }
+
+    bool OrganizationImpl::add_organization_property(const ::SDOPackage::Local::OrganizationProperty& organization_property)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("add_organization_property");
+          }
+        return true;
+    }
+
+    bool OrganizationImpl::set_organization_property_value(const ::std::string&name, const ::std::string& value)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_organization_property_value");
+          }
+        return true;
+    }
+
+    bool OrganizationImpl::remove_organization_property(const ::std::string& name)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("remove_organization_property");
+          }
+        return true;
+    }
+
+    ::SDOPackage::Local::ISDOSystemElement* OrganizationImpl::get_owner()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_owner");
+          }
+        return NULL;
+    }
+
+    bool OrganizationImpl::set_owner(const ::SDOPackage::Local::ISDOSystemElement* sdo)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_owner");
+          }
+        return true;
+    }
+
+    ::SDOPackage::Local::SDOList OrganizationImpl::get_members()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_members");
+          }
+        ::SDOPackage::Local::SDOList ret;
+        return ret;
+    }
+
+    bool OrganizationImpl::set_members(const ::SDOPackage::Local::SDOList& sdos)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_members");
+          }
+        return true;
+    }
+
+    bool OrganizationImpl::add_members(const ::SDOPackage::Local::SDOList& sdo_list)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("add_members");
+          }
+        return true;
+    }
+
+    bool OrganizationImpl::remove_member(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("remove_member");
+          }
+        return true;
+    }
+
+    ::SDOPackage::Local::DependencyType OrganizationImpl::get_dependency()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("get_dependency");
+          }
+        ::SDOPackage::Local::DependencyType ret;
+        return ret;
+    }
+
+    bool OrganizationImpl::set_dependency(::SDOPackage::Local::DependencyType dependency)
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError)
+    {
+        if (m_logger != NULL) 
+          {
+            m_logger->push("set_dependency");
+          }
+        return true;
+    }
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/OrganizationImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,125 @@
+// -*- C++ -*-
+/*!
+ * @file OrganizationImpl.h
+ * @brief OrganizationImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef ORGANIZATION_IMPL_H
+#define ORGANIZATION_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <IOrganization.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class OrganizationImpl
+   * @brief Organization試験用インプリメントクラス
+   * @else
+   * @class OrganizationImpl
+   * @brief Organization implementation class for OrganizationServant' unittest.
+   * @endif
+   */
+
+  class OrganizationImpl
+   : public virtual doil::ImplBase,
+     public virtual ::SDOPackage::Local::IOrganization
+
+  {
+  public:
+    OrganizationImpl();
+    OrganizationImpl(Logger& aLogger);
+
+    virtual ~OrganizationImpl();
+    
+    virtual ::std::string get_organization_id()
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual ::SDOPackage::Local::OrganizationProperty get_organization_property()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual ::std::string get_organization_property_value(const ::std::string& name)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool add_organization_property(const ::SDOPackage::Local::OrganizationProperty& organization_property)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool set_organization_property_value(const ::std::string&name, const ::std::string& value)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool remove_organization_property(const ::std::string& name)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual ::SDOPackage::Local::ISDOSystemElement* get_owner()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool set_owner(const ::SDOPackage::Local::ISDOSystemElement* sdo)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual ::SDOPackage::Local::SDOList get_members()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool set_members(const ::SDOPackage::Local::SDOList& sdos)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool add_members(const ::SDOPackage::Local::SDOList& sdo_list)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool remove_member(const ::std::string& id)
+      throw (::SDOPackage::Local::InvalidParameter,
+             ::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual ::SDOPackage::Local::DependencyType get_dependency()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+    virtual bool set_dependency(::SDOPackage::Local::DependencyType dependency)
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    const char* id() { return "Organization"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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/SDOServiceImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.cpp	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+/*!
+ * @file SDOServiceImpl.h
+ * @brief SDOServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <SDOServiceImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class SDOServiceImpl
+   * @brief SDOServiceServant試験用インプリメントクラス
+   * @else
+   * @class SDOServiceImpl
+   * @brief SDOService implementation class for LightweightRTObjecServant' unittest.
+   * @endif
+   */
+   int SDOServiceImpl::count = 0;
+
+    SDOServiceImpl::SDOServiceImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    SDOServiceImpl::SDOServiceImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    SDOServiceImpl::~SDOServiceImpl()
+    {
+    }
+
+
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOServiceImpl.h	2014-02-14 16:55:13 UTC (rev 2489)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+/*!
+ * @file SDOServiceImpl.h
+ * @brief SDOServiceImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef EXECUTIONCONTEXT_IMPL_H
+#define EXECUTIONCONTEXT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <ISDOService.h>
+#include <IComponentAction.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class SDOServiceImpl
+   * @brief SDOService試験用インプリメントクラス
+   * @else
+   * @class SDOServiceImpl
+   * @brief SDOService implementation class for SDOServiceServant' unittest.
+   * @endif
+   */
+
+  class SDOServiceImpl
+   : public virtual doil::ImplBase,
+     public virtual RTC::Local::ISDOService
+
+  {
+  public:
+    SDOServiceImpl();
+    SDOServiceImpl(Logger& aLogger);
+
+    virtual ~SDOServiceImpl();
+
+
+    const char* id() { return "SDOService"; }
+    const char* name() { return m_name; }
+    void incRef() { refcount++; }
+    void decRef() { refcount--; }
+  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