X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5feb2747f8b89db0209a13b826559b02bce3d43f..cafdb587ee6e195e5a917cea7570c2ea7e22a003:/Model/src/pump.cpp diff --git a/Model/src/pump.cpp b/Model/src/pump.cpp index 7f1ace4..9c2a9b4 100644 --- a/Model/src/pump.cpp +++ b/Model/src/pump.cpp @@ -74,3 +74,14 @@ void Pump::recieve_msg(int msg, IConector *who, void *data) } +void Pump::get_state_as_xml(std::stringstream &out) +{ + // Saco el item basico por XML + PlantItem::get_state_as_xml(out); + + // Saco lo importante de este item + out << "\t" << std::endl; + out << "\t\t" << ((open&&active)?"true":"false") << "" << std::endl; + out << "\t" << std::endl; +} +