+
+std::string Simulator::get_state_as_xml()
+{
+ std::stringstream out;
+
+ // XML Header
+ out << "<?xml version=\"1.0\" ?>" << std::endl;
+
+ out << "<plantstatus frame=\"" << frame << "\">" << std::endl;
+
+ std::list<PlantItem *>::iterator i2;
+ for(i2=items.begin(); i2!=items.end(); i2++)
+ (*i2)->get_state_as_xml(out);
+
+ out << "</plantstatus>";
+ return out.str();;
+}
+