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

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 2月 15日 (土) 02:22:37 JST


Author: win-ei
Date: 2014-02-15 02:22:36 +0900 (Sat, 15 Feb 2014)
New Revision: 2491

Added:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.cpp
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.h
Modified:
   branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/Makefile.am
Log:
Daily work. 

Modified: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/Makefile.am
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/Makefile.am	2014-02-14 17:20:52 UTC (rev 2490)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/Makefile.am	2014-02-14 17:22:36 UTC (rev 2491)
@@ -50,6 +50,8 @@
 libstubs_a_SOURCES += ModeCapableImpl.cpp
 libstubs_a_SOURCES += MultiModeComponentActionImpl.cpp
 libstubs_a_SOURCES += OrganizationImpl.cpp
+libstubs_a_SOURCES += SDOSystemElementImpl.cpp
+#libstubs_a_SOURCES += SDOImpl.cpp
 stubsdir = .
 
 noinst_LIBRARIES = libstubs.a

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.cpp
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.cpp	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.cpp	2014-02-14 17:22:36 UTC (rev 2491)
@@ -0,0 +1,68 @@
+// -*- C++ -*-
+/*!
+ * @file SDOSystemElementImpl.h
+ * @brief SDOSystemElementImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+
+#include <stdio.h>
+#include <SDOSystemElementImpl.h>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+  /*!
+   * @if jp
+   * @class SDOSystemElementImpl
+   * @brief SDOSystemElementServant試験用インプリメントクラス
+   * @else
+   * @class SDOSystemElementImpl
+   * @brief SDOSystemElement implementation class for LightweightRTObjecServant' unittest.
+   * @endif
+   */
+   int SDOSystemElementImpl::count = 0;
+
+    SDOSystemElementImpl::SDOSystemElementImpl()
+    {
+      ++count;
+      m_logger = new Logger();
+    } 
+    SDOSystemElementImpl::SDOSystemElementImpl(Logger& aLogger)
+    {
+      ++count;
+      m_logger = &aLogger;
+    } 
+
+    SDOSystemElementImpl::~SDOSystemElementImpl()
+    {
+    }
+
+    ::SDOPackage::Local::OrganizationList SDOSystemElementImpl::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;
+    }
+
+
+
+
+
+
+
+}; // namespace Local 
+}; // namespace SDOPackage 

Added: branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.h
===================================================================
--- branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.h	                        (rev 0)
+++ branches/work_ForDoil/OpenRTM-aist/src/lib/doil/utils/omniidl_be/tests/unitTest/stubs/SDOSystemElementImpl.h	2014-02-14 17:22:36 UTC (rev 2491)
@@ -0,0 +1,64 @@
+// -*- C++ -*-
+/*!
+ * @file SDOSystemElementImpl.h
+ * @brief SDOSystemElementImpl C++ implementation sample for doil
+ * @date $Date$
+ * @author 
+ *
+ * $Id$
+ */
+
+#ifndef SDOSYSTEMELEMENT_IMPL_H
+#define SDOSYSTEMELEMENT_IMPL_H
+
+
+#include <doil/ImplBase.h>
+#include <ISDOSystemElement.h>
+#include <Logger.h>
+
+namespace UnitTest
+{
+namespace Servant
+{
+
+  /*!
+   * @if jp
+   * @class SDOSystemElementImpl
+   * @brief SDOSystemElement試験用インプリメントクラス
+   * @else
+   * @class SDOSystemElementImpl
+   * @brief SDOSystemElement implementation class for SDOSystemElementServant' unittest.
+   * @endif
+   */
+
+  class SDOSystemElementImpl
+   : public virtual doil::ImplBase,
+     public virtual ::SDOPackage::Local::ISDOSystemElement
+
+  {
+  public:
+    SDOSystemElementImpl();
+    SDOSystemElementImpl(Logger& aLogger);
+
+    virtual ~SDOSystemElementImpl();
+
+    virtual ::SDOPackage::Local::OrganizationList get_owned_organizations()
+      throw (::SDOPackage::Local::NotAvailable,
+             ::SDOPackage::Local::InternalError);
+
+
+    const char* id() { return "SDOSystemElement"; }
+    const char* name() { return m_name; }
+    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