+
+void WorkPlace::delete_item(int _id)
+{
+ std::list<CItem*>::iterator i = listaItems->begin();
+ while ( i != listaItems->end() ){
+ CItem *temp = *i;
+ if ( temp->get_id() == _id ){
+ listaItems->erase(i);
+ delete temp;
+ break;
+ }
+ i++;
+ }
+}
+
+CItem* WorkPlace::get_logic_item(int _id)
+{
+ std::list<CItem *>::iterator i = lista_logic_Items->begin();
+ while ( i != lista_logic_Items->end() ){
+ CItem *temp = *i;
+ if ( temp->get_id() == _id )
+ return temp;
+ i++;
+ }
+ return NULL;
+}