X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f29a7129de56edca96ea8ef58576898c1e52ed6f..6f70c17ffefd6150b68ac0f64a8116e730437408:/Model/include/tank.h?ds=sidebyside diff --git a/Model/include/tank.h b/Model/include/tank.h index edbe0a1..652955b 100644 --- a/Model/include/tank.h +++ b/Model/include/tank.h @@ -32,12 +32,13 @@ public: virtual void simulate(); void set_litros(float l) { litros = l; } + void get_state_as_xml(std::stringstream &out); protected: float litros; ///< cantidad de líquido actual float actual_in_flow; ///< flujo máximo a la entrada float actual_out_flow; ///< flujo máximo de la salida private: - Tank():Drain("null"),Source("null"),Control("null") {} + Tank():Control("null"),Source("null"),Drain("null") {} Tank &operator = (const Tank &) { return *this; } };