U++ framework
Do not panic. Ask here before giving up.

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: 3464
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: Fri Nov 13 06:28:01 GMT+1 2026

Total time taken to generate the page: 0.01120 seconds