Beispiel #1
0
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 << " \" } }";
  */
};
Beispiel #2
0
string MetaParametersLWPR::toString(void) const {
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("MetaParametersLWPR");
}
Beispiel #3
0
string TaskSolverDmp::toString(void) const
{
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("TaskSolverDmp");
}
Beispiel #4
0
string FunctionApproximator::toString(void) const
{
  string name = "FunctionApproximator"+getName();
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML(name.c_str());
}
Beispiel #5
0
string ModelParametersGMR::toString(void) const 
{
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("ModelParametersGMR");
};
Beispiel #6
0
string ExponentialSystem::toString(void) const
{
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("ExponentialSystem");
}
Beispiel #7
0
string UnifiedModel::toString(void) const
{
  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("UnifiedModel");
}