[openrtm-commit:01177] r487 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 1月 23日 (木) 09:43:35 JST


Author: win-ei
Date: 2014-01-23 09:43:35 +0900 (Thu, 23 Jan 2014)
New Revision: 487

Modified:
   branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
Log:
Added the processing which outputsFaultDiagnosisMngTbl.c file.

Modified: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2014-01-23 00:30:07 UTC (rev 486)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2014-01-23 00:43:35 UTC (rev 487)
@@ -867,6 +867,25 @@
 					PrintWriter pw = new PrintWriter(bw);
 					pw.println(gr.getCode());
 					pw.close();
+					//System.out.println(gr.getCode());
+					}
+					//
+					//FaultDiagnosisMngTbl.c
+					//
+					{
+					String template = TEMPLATE_PATH + "/" +"FaultDiagnosisMngTbl.c.vsl";
+					ClassLoader cl = Thread.currentThread().getContextClassLoader();
+					InputStream ins = cl.getResourceAsStream(template);
+					String dataPortContct = tablepath+"\\FaultDiagnosisMngTbl.c";
+					Map<String, Object> contextMap = new HashMap<String, Object>();
+					contextMap.put("template", TEMPLATE_PATH);
+					GeneratedResult gr = TemplateUtil.createGeneratedResult(ins, contextMap, dataPortContct);
+					File targetFile = new File(dataPortContct);
+					FileWriter filewriter = new FileWriter(targetFile);
+					BufferedWriter bw = new BufferedWriter(filewriter);
+					PrintWriter pw = new PrintWriter(bw);
+					pw.println(gr.getCode());
+					pw.close();
 					System.out.println(gr.getCode());
 					}
 				}



More information about the openrtm-commit mailing list