STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 6)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
SET(${PROJECT_NAME_UC}_VERSION
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
-SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
+SET(${PROJECT_NAME_UC}_VERSION_DEV 0)
# Find KERNEL (optional)
# ==============
}
void DynParaLoop::checkLinkPossibility(OutPort *start, const std::list<ComposedNode *>& pointsOfViewStart,
- InPort *end, const std::list<ComposedNode *>& pointsOfViewEnd) throw(Exception)
+ InPort *end, const std::list<ComposedNode *>& pointsOfViewEnd) throw(YACS::Exception)
{
ComposedNode::checkLinkPossibility(start, pointsOfViewStart, end, pointsOfViewEnd);
Node * startNode = isInMyDescendance(start->getNode());
bool Executor::saveState(const std::string& xmlFile)
{
DEBTRACE("Executor::saveState() in " << xmlFile);
- YACS::ENGINE::VisitorSaveState vst(_root);
- vst.openFileDump(xmlFile.c_str());
- _root->accept(&vst);
- vst.closeFileDump();
- return true;
+ bool result = false;
+ try {
+ YACS::ENGINE::VisitorSaveState vst(_root);
+ vst.openFileDump(xmlFile.c_str());
+ _root->accept(&vst);
+ vst.closeFileDump();
+ result = true;
+ }
+ catch(Exception& ex) {
+ std::cerr << ex.what() << std::endl;
+ }
+ return result;
}
//! not yet implemented
}
void OptimizerLoop::checkLinkPossibility(OutPort *start, const std::list<ComposedNode *>& pointsOfViewStart,
- InPort *end, const std::list<ComposedNode *>& pointsOfViewEnd) throw(Exception)
+ InPort *end, const std::list<ComposedNode *>& pointsOfViewEnd) throw(YACS::Exception)
{
DynParaLoop::checkLinkPossibility(start, pointsOfViewStart, end, pointsOfViewEnd);
std::string linkName("(");
linkName += start->getName()+" to "+end->getName()+")";
// Yes, it should be possible to link back the result port to any input port of the loop.
- if(end == &_nbOfBranches or end == &_algoInitPort)
+ if(end == &_nbOfBranches || end == &_algoInitPort)
if(start != &_algoResultPort)
throw Exception(std::string("Illegal OptimizerLoop link.") + linkName);
else
throw Exception(std::string("Illegal OptimizerLoop link: \
The 'algoResult' port can't be linked within the scope of the loop.") + linkName);
- if(end == &_retPortForOutPool and isInMyDescendance(start->getNode())!=_node)
+ if(end == &_retPortForOutPool && isInMyDescendance(start->getNode())!=_node)
throw Exception(std::string("Illegal OptimizerLoop link: \
The 'evalResults' port can only be linked to the working node.") + linkName);
}
bool StartFinish = (getExecutorState() == YACS::NOTYETINITIALIZED ||
getExecutorState() == YACS::FINISHED);
if ( _isRunning ||
- !(CORBA::is_nil(_procRef)) && StartFinish )
- _procRef->saveState(xmlFile.c_str());
+ !(CORBA::is_nil(_procRef)) && StartFinish ) {
+ if ( !_procRef->saveState(xmlFile.c_str()) ) {
+ string what = "Impossible to open file for writing: " + xmlFile;
+ throw Exception(what);
+ }
+ }
}
void GuiExecutor::setLoadStateFile(std::string xmlFile)
SALOME_CONFIGURE_FILE(xmlrun_orig.sh xmlrun.sh)
ADD_TEST(NAME runtimeTest COMMAND ${SHELL} ${CMAKE_CURRENT_SOURCE_DIR}/runtimeTest.sh)
SET_TESTS_PROPERTIES(runtimeTest PROPERTIES ENVIRONMENT "${tests_env}")
+ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/xmlrun.sh DESTINATION ${LOCAL_TEST_DIR})
ENDIF()
INSTALL(PROGRAMS runtimeTest.sh DESTINATION ${LOCAL_TEST_DIR})
-INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/xmlrun.sh DESTINATION ${LOCAL_TEST_DIR})
INSTALL(TARGETS runtime_echo DESTINATION ${SALOME_YACS_INSTALL_TEST_LIB})
INSTALL(TARGETS TestRuntime DESTINATION ${LOCAL_TEST_DIR})
INSTALL(TARGETS runtimeTestEchoSrv DESTINATION ${LOCAL_TEST_DIR})
</message>
<message>
<source>Put Graph Content in Node</source>
- <translation type="unfinished">ノード内のグラフの内容を置く</translation>
+ <translation>ノード内のグラフの内容を置く</translation>
</message>
<message>
<source>arrange nodes on that bloc level, without recursion</source>
</message>
<message>
<source>shrink or expand direct children of the selected node</source>
- <translation type="unfinished">選択中のノードを展開または縮小</translation>
+ <translation>選択中のノードを展開または縮小</translation>
</message>
<message>
<source>shrink or expand elementary nodes of the selected node recursively</source>
- <translation type="unfinished">選択中のノードを展開または縮小</translation>
+ <translation>選択中のノードを展開または縮小</translation>
</message>
<message>
<source>shrink/expand</source>
</message>
<message>
<source>shrink/expand children</source>
- <translation type="unfinished">展開/縮小</translation>
+ <translation>展開/縮小</translation>
</message>
<message>
<source>shrink/expand elementary</source>
- <translation type="unfinished">展開/縮小</translation>
+ <translation>展開/縮小</translation>
</message>
<message>
<source>draw straight or orthogonal links</source>