X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/70d2e24643727ab1ea48e1793d609d27b7d21fed..00022ec489f95c02ad6f4478abaf3d8dd0e9a928:/Model/include/pump.h?ds=sidebyside diff --git a/Model/include/pump.h b/Model/include/pump.h index ab7966f..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") {} + Pump(const Pump &):Control("null"),Source("null") {} Pump &operator = (const Pump &) { return *this; } };