y = atoi( (char *)XML_GET_CONTENT(nodo->children) );
} else if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
+ linea.is_tank = false;
p->out_lines.push_back(linea);
} else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
y = atoi( (char *)XML_GET_CONTENT(nodo->children) );
} else if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
+ linea.is_tank = false;
p->out_lines.push_back(linea);
} else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
if (xmlStrcmp(items->name, BAD_CAST"float")==0) {
tmp = get_float_from_xml(items->children);
item_name = (char *)xmlGetProp(items, BAD_CAST"name");
- std::cout << item_name << " " << tmp << std::endl;
mapItems[item_name]->set_actual_flow(tmp);
} else if (xmlStrcmp(items->name, BAD_CAST"exclusa")==0) {
tmp_b = get_bool_from_xml(items->children);
else if (xmlStrcmp(nodo_tmp->name, BAD_CAST"litros")==0)
lit= atof( (char *)XML_GET_CONTENT(nodo_tmp->children) );
else if (xmlStrcmp(nodo_tmp->name, BAD_CAST"salida")==0) {
- if (xmlStrcmp(xmlGetProp(items, BAD_CAST"id"), BAD_CAST"inferior")==0) {
+ if (xmlStrcmp(xmlGetProp(nodo_tmp, BAD_CAST"id"), BAD_CAST"inferior")==0) {
b_inf = get_bool_from_xml(nodo_tmp->children);
} else {
b_sup = get_bool_from_xml(nodo_tmp->children);