#define _LOGIC_CONTROL_H_
#include "iconector.h"
+#include <string>
namespace PlaQui {
namespace Model {
* \see Exclusa::update
*/
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:
+ std::string name;
};
}