[Jderobot-admin] jderobot-r1145 - trunk/src/stable/components/visualHFSM

bmenendez en jderobot.org bmenendez en jderobot.org
Mar Ene 21 23:18:00 CET 2014


Author: bmenendez
Date: 2014-01-21 23:18:00 +0100 (Tue, 21 Jan 2014)
New Revision: 1145

Modified:
   trunk/src/stable/components/visualHFSM/generate.cpp
Log:
#146 Eliminado bug de generador de c?\195?\179digo de las transiciones.


Modified: trunk/src/stable/components/visualHFSM/generate.cpp
===================================================================
--- trunk/src/stable/components/visualHFSM/generate.cpp	2014-01-11 10:00:20 UTC (rev 1144)
+++ trunk/src/stable/components/visualHFSM/generate.cpp	2014-01-21 22:18:00 UTC (rev 1145)
@@ -283,6 +283,10 @@
 					if (transListIterator->getType().compare("condition") == 0) {
 						this->fs << "\t\t\t\tif (" << transListIterator->getCodeTrans().c_str() << ") {" << std::endl;
 						this->fs << "\t\t\t\t\tsub_" << id << " = " << subListIterator->getNodeName(idDestiny) << ";" << std::endl;
+						std::istringstream f(transListIterator->getCode());
+						std::string line;
+						while (std::getline(f, line))
+							this->fs << "\t\t\t\t\t\t" << line << std::endl;
 						this->fs << "\t\t\t\t}" << std::endl;
 					} else {
 						this->fs << "\t\t\t\tif (!t_activated) {" << std::endl;



More information about the Jderobot-admin mailing list