Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Xmlize default value
Xmlize default value [message #37808] Wed, 14 November 2012 10:27 Go to previous message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello all

A possible idea to improve Xmlize/Serialize functions would be to add a default value to be used when no data is found loading the class.

It could be like this

void Xmlize(XmlIO &xml) {
	xml
		("MyString", myString, "Default value")
		("MyDouble", myDouble, 1200.2)
	;
}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: proposal: bool Index::HasUnlinked()
Next Topic: To get xml errors from LoadFromXML
Goto Forum:
  


Current Time: Mon Mar 01 02:38:40 CET 2021

Total time taken to generate the page: 0.01110 seconds