]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/include/logiccontrol.h
Mini bugfix.
[z.facultad/75.42/plaqui.git] / Model / include / logiccontrol.h
index 3a56c65c8b05145076fe08d7955bd5b51ad54be4..e3c252e4aa1023c0a0619f03b205d40145c3e920 100644 (file)
@@ -42,6 +42,12 @@ public:
         */
        bool is_operational() { return (in_list.begin() != in_list.end()); }
 
         */
        bool is_operational() { return (in_list.begin() != in_list.end()); }
 
+       void get_state_as_xml(std::stringstream &out) {
+               out << "\t<logic name=\"" << name << "\">" << std::endl;
+               out << "\t\t<active>" << ((get_output())?"true":"false") << "</active>" << std::endl;
+               out << "\t</logic>" << std::endl;
+       }
+
        void set_name(const std::string &_name) { name = _name; }
        std::string get_name() { return name; }
 protected:
        void set_name(const std::string &_name) { name = _name; }
        std::string get_name() { return name; }
 protected: