X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/98871795be266e4ea8b4662737ac618ebee0fb79..fc388ed8c2016ad44f83d20859bf864562f731a1:/Model/src/elementoplanta.cpp diff --git a/Model/src/elementoplanta.cpp b/Model/src/elementoplanta.cpp index 244ea6e..833c757 100644 --- a/Model/src/elementoplanta.cpp +++ b/Model/src/elementoplanta.cpp @@ -4,7 +4,12 @@ using namespace PlaQui; -ElementoPlanta::ElementoPlanta() +ElementoPlanta::ElementoPlanta(const std::string &_name):IConector(0, 0) +{ + name = _name; +} + +ElementoPlanta::ElementoPlanta(unsigned ins, unsigned outs):IConector(ins, outs) { } @@ -12,15 +17,15 @@ ElementoPlanta::~ElementoPlanta() { } -void ElementoPlanta::recieve_msg(int msg, IConector *who) +void ElementoPlanta::recieve_msg(int msg, IConector *who, void *data) { switch (msg) { case MSG_QUERY_MAX_FLOW: - /// TODO + // TODO return; break; default: - IConector::recieve_msg(msg, who); + IConector::recieve_msg(msg, who, data); } }