[openrtm-commit:03093] r3178 - branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 1月 22日 (月) 13:02:11 JST
Author: miyamoto
Date: 2018-01-22 13:02:11 +0900 (Mon, 22 Jan 2018)
New Revision: 3178
Modified:
branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/Manager.cpp
Log:
[compat,->RELENG_1_2]delete manager.refstring_path
Modified: branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/Manager.cpp
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/Manager.cpp 2018-01-22 03:37:41 UTC (rev 3177)
+++ branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/Manager.cpp 2018-01-22 04:02:11 UTC (rev 3178)
@@ -1947,29 +1947,7 @@
}
}
- std::ifstream otherref(m_config["manager.refstring_path"].c_str());
- if (otherref.fail() != 0)
- {
- otherref.close();
- std::ofstream reffile(m_config["manager.refstring_path"].c_str());
- RTM::Manager_var mgr_v(RTM::Manager::
- _duplicate(m_mgrservant->getObjRef()));
- CORBA::String_var str_var = m_pORB->object_to_string(mgr_v);
- reffile << str_var;
- reffile.close();
- }
- else
- {
- std::string refstring;
- otherref >> refstring;
- otherref.close();
- CORBA::Object_var obj = m_pORB->string_to_object(refstring.c_str());
- RTM::Manager_var mgr = RTM::Manager::_narrow(obj);
- // if (CORBA::is_nil(mgr)) return false;
- // mgr->set_child(m_mgrservant->getObjRef());
- // m_mgrservant->set_owner(mgr);
- }
if (coil::toBool(m_config["corba.update_master_manager.enable"], "YES", "NO", true)
&& !coil::toBool(m_config["manager.is_master"], "YES", "NO", false))
More information about the openrtm-commit
mailing list