X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f29a7129de56edca96ea8ef58576898c1e52ed6f..c0df682bb52a8bcab7c182fb45b340814b2eada8:/Model/include/logiccontrol.h?ds=inline diff --git a/Model/include/logiccontrol.h b/Model/include/logiccontrol.h index 76f7174..e3c252e 100644 --- a/Model/include/logiccontrol.h +++ b/Model/include/logiccontrol.h @@ -3,6 +3,7 @@ #define _LOGIC_CONTROL_H_ #include "iconector.h" +#include namespace PlaQui { namespace Model { @@ -40,6 +41,17 @@ public: * \see Exclusa::update */ bool is_operational() { return (in_list.begin() != in_list.end()); } + + void get_state_as_xml(std::stringstream &out) { + out << "\t" << std::endl; + out << "\t\t" << ((get_output())?"true":"false") << "" << std::endl; + out << "\t" << std::endl; + } + + void set_name(const std::string &_name) { name = _name; } + std::string get_name() { return name; } +protected: + std::string name; }; }