return EC_OK;\r
}\r
\r
-// void TeoriaDelete(pointer{Teoria})\r
-int SAbrTeoriaDelete(brEval args[], brEval* result, void* data)\r
-{\r
- delete (CTeoria*) BRPOINTER(args);\r
- return EC_OK;\r
-}\r
-\r
\r
/////////////////////////// CSistemaAutonomo /////////////////////////\r
\r
{\r
CSistemaAutonomo* sa = (CSistemaAutonomo*) BRPOINTER(args);\r
CTeoria* t = (CTeoria*) BRPOINTER(args+1);\r
- sa->teorias.add(t->nombre.c_str(), *t);\r
+ sa->teorias.add(t->nombre, t);\r
#ifdef DEBUG\r
std::cout << "Agrega teoria " << t->nombre << ":\n";\r
std::cout << " .datos_iniciales:\n" << t->datos_iniciales << "\n";\r
AT_STRING, AT_POINTER, 0);\r
brNewBreveCall(data, "TeoriaGetAccion", SAbrTeoriaGetAccion,\r
AT_STRING, AT_POINTER, 0);\r
- brNewBreveCall(data, "TeoriaDelete", SAbrTeoriaDelete,\r
- AT_NULL, AT_POINTER, 0);\r
brNewBreveCall(data, "SistemaAutonomoNew", SAbrSistemaAutonomoNew,\r
AT_POINTER, 0);\r
brNewBreveCall(data, "SistemaAutonomoAddTeoria", SAbrSistemaAutonomoAddTeoria,\r