+void Simulator::loadNot(xmlNodePtr nodo)
+{
+ std::string name = (char *)xmlGetProp(nodo, BAD_CAST"nombre");
+ std::string id = (char *)xmlGetProp(nodo, BAD_CAST"id");
+ int orientacion=0, x, y;
+
+ nodo = nodo->children;
+ while (nodo != NULL) {
+ if (nodo->type == XML_ELEMENT_NODE) {
+ if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
+ //p->out_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ } else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
+ //p->in_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ }
+ }
+ nodo = nodo->next;
+ }
+
+ Not *n = new Not();
+ n->set_name(name);
+ control_lst.push_back(n);
+}
+
+void Simulator::loadOr(xmlNodePtr nodo)
+{
+ std::string name = (char *)xmlGetProp(nodo, BAD_CAST"nombre");
+ std::string id = (char *)xmlGetProp(nodo, BAD_CAST"id");
+
+ nodo = nodo->children;
+ while (nodo != NULL) {
+ if (nodo->type == XML_ELEMENT_NODE) {
+ if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
+ //p->out_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ } else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
+ //p->in_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ }
+ }
+ nodo = nodo->next;
+ }
+
+ Or *n = new Or();
+ n->set_name(name);
+ control_lst.push_back(n);
+}
+
+void Simulator::loadAnd(xmlNodePtr nodo)
+{
+ std::string name = (char *)xmlGetProp(nodo, BAD_CAST"nombre");
+ std::string id = (char *)xmlGetProp(nodo, BAD_CAST"id");
+ int orientacion=0, x, y;
+
+ nodo = nodo->children;
+ while (nodo != NULL) {
+ if (nodo->type == XML_ELEMENT_NODE) {
+ if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
+ // p->out_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ } else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
+ // p->in_lines.push_back((char *)XML_GET_CONTENT(nodo->children));
+ }
+ }
+ nodo = nodo->next;
+ }
+
+ And *n = new And();
+ n->set_name(name);
+ control_lst.push_back(n);
+}
+