X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/fe35ed0badc6a1a01237027effb74b82acbdb9e5..f1f01b21410b676a9c35c93251d5739bb65c711d:/Constructor/src/workplace.cpp diff --git a/Constructor/src/workplace.cpp b/Constructor/src/workplace.cpp index 2b04130..847aa17 100644 --- a/Constructor/src/workplace.cpp +++ b/Constructor/src/workplace.cpp @@ -174,6 +174,27 @@ CItem *WorkPlace::get_item(int _id) return NULL; } +int WorkPlace::get_logic_id(const std::string &_s) +{ + std::list::iterator i = lista_logic_Items->begin(); + while ( i != lista_logic_Items->end() ){ + if ( (*i)->get_name() == _s ) + return (*i)->get_id(); + i++; + } + return -1; +} + +int WorkPlace::get_item_id(const std::string &_s) +{ + std::list::iterator i = listaItems->begin(); + while ( i != listaItems->end() ){ + if ( (*i)->get_name() == _s ) + return (*i)->get_id(); + i++; + } + return -1; +} void WorkPlace::delete_line(int _id) {