string ModelParametersLWPR::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("ModelParametersLWPR"); /* output << "{ \"ModelParametersLWPR\": { \"lwpr_object_xml_string\": \""; // Write file string filename("/tmp/lpwrfile_serialize.xml"); lwpr_object_->writeXML(filename.c_str()); // Read file into string stream (through file stream) ifstream t(filename); stringstream strstream; strstream << t.rdbuf(); // Get the string and remove newlines string str = strstream.str(); str.erase(std::remove(str.begin(), str.end(), '\n'), str.end()); // Output the XML string to the current output stream output << str; output << " \" } }"; */ };
string MetaParametersLWPR::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("MetaParametersLWPR"); }
string TaskSolverDmp::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("TaskSolverDmp"); }
string FunctionApproximator::toString(void) const { string name = "FunctionApproximator"+getName(); RETURN_STRING_FROM_BOOST_SERIALIZATION_XML(name.c_str()); }
string ModelParametersGMR::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("ModelParametersGMR"); };
string ExponentialSystem::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("ExponentialSystem"); }
string UnifiedModel::toString(void) const { RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("UnifiedModel"); }