[openrtm-commit:00909] r370 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/manager
openrtm @ openrtm.org
openrtm @ openrtm.org
2012年 11月 17日 (土) 13:16:56 JST
Author:
Date: 2012-11-17 13:16:56 +0900 (Sat, 17 Nov 2012)
New Revision: 370
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/manager/TemplateHelperPy.java
Log:
Modified Python import section
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/manager/TemplateHelperPy.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/manager/TemplateHelperPy.java 2012-11-17 03:57:41 UTC (rev 369)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/manager/TemplateHelperPy.java 2012-11-17 04:16:56 UTC (rev 370)
@@ -106,30 +106,32 @@
for(IdlFileParam target : targetFiles) {
if(target.isDataPort()==false) continue;
String targetType = "";
- if( target.getTargetType().contains("::") ) {
- String[] types = target.getTargetType().split("::");
- /////
- targetType = types[0];
- if(check.contains(targetType)==false) {
- check.add(targetType);
- result.add(targetType);
- }
-// StringBuilder builder = new StringBuilder();
-// for(int index=0;index<types.length-1;index++) {
-// if(index!=0) builder.append(".");
-// builder.append(types[index]);
-// targetType = builder.toString();
-// if(check.contains(targetType)==false) {
-// check.add(targetType);
-// result.add(targetType);
+ for(String targetTypes : target.getTargetType()) {
+ if( targetTypes.contains("::") ) {
+ String[] types = targetTypes.split("::");
+ /////
+ targetType = types[0];
+ if(check.contains(targetType)==false) {
+ check.add(targetType);
+ result.add(targetType);
+ }
+// StringBuilder builder = new StringBuilder();
+// for(int index=0;index<types.length-1;index++) {
+// if(index!=0) builder.append(".");
+// builder.append(types[index]);
+// targetType = builder.toString();
+// if(check.contains(targetType)==false) {
+// check.add(targetType);
+// result.add(targetType);
+// }
// }
-// }
- } else {
- targetType = "_GlobalIDL";
- if(check.contains(targetType)==false) {
- check.add(targetType);
- result.add(targetType);
+ } else {
+ targetType = "_GlobalIDL";
+ if(check.contains(targetType)==false) {
+ check.add(targetType);
+ result.add(targetType);
+ }
}
}
}
More information about the openrtm-commit
mailing list