5 using namespace PlaQui::Model;
7 PlantItem::PlantItem(const std::string &_name):IConector(0, 0)
13 PlantItem::PlantItem(unsigned ins, unsigned outs):IConector(ins, outs)
18 PlantItem::~PlantItem()
22 void PlantItem::recieve_msg(int msg, IConector *who, void *data)
25 case MSG_QUERY_MAX_FLOW_OUT:
30 IConector::recieve_msg(msg, who, data);
34 void PlantItem::get_state_as_xml(std::stringstream &out)
36 out << "\t<float name=\"" << name << "\">" << std::endl;
37 out << "\t\t<actual_flow>" << actual_flow << "</actual_flow>" << std::endl;
38 out << "\t</float>" << std::endl;
40 // Para que quede bonito