+bool Plant::set_open(const std::string& element, bool open) {
+ Glib::Mutex::Lock lock(simulator_mutex);
+ return simulator.set_open(element, open);
+}
+
+const string Plant::get_xml(void) const {
+ ostringstream oss;
+ try {
+ ifstream ifs(filename.c_str());
+ ifs >> noskipws;
+ copy(istream_iterator<char>(ifs), istream_iterator<char>(),
+ ostream_iterator<char>(oss));
+ } catch (...) { // TODO hacerlo mas selectivo?
+ return "";
+ }
+ return oss.str();
+}
+