X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f031c89fa8a00ea12ff7290569ec507f44402458..4c30f5939017e47c70f79df3a9f737d9ea743db5:/Model/include/pump.h diff --git a/Model/include/pump.h b/Model/include/pump.h index 6d13762..b8b12f0 100644 --- a/Model/include/pump.h +++ b/Model/include/pump.h @@ -3,6 +3,7 @@ #define _BOMB_H_ #include "source.h" +#include "bypass.h" namespace PlaQui { @@ -41,6 +42,7 @@ public: void activate() { active = true; } /// Desactiva la bomba void deactivate() { active = false; } + void get_state_as_xml(std::stringstream &out); protected: /** Define si la bomba esta abierta o no. Esto lo maneja la logica de * control @@ -51,7 +53,7 @@ protected: */ bool active; private: - Pump(const Pump &):Source("null"),Control("null") {} + Pump(const Pump &):Control("null"),Source("null") {} Pump &operator = (const Pump &) { return *this; } };