util.h
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #ifndef DOIL_CORBA_UTIL_H
00021 #define DOIL_CORBA_UTIL_H
00022 
00023 #include <doil/corba/CORBAManager.h>
00024 
00025 namespace doil
00026 {
00027 namespace CORBA
00028 {
00029   template <typename CORBAObject>
00030   typename CORBAObject::_ptr_type to_reference(ImplBase* impl)
00031   {
00032     ::CORBA::Object_ptr obj;
00033     obj = doil::CORBA::CORBAManager::instance().toReference(impl);
00034     return CORBAObject::_narrow(obj);
00035   }
00036 };
00037 };
00038 #endif // DOIL_CORBA_UTIL_H


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:17