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 » LoadFromXML problem and solution
Re: LoadFromXML problem and solution [message #36727 is a reply to message #36715] Fri, 29 June 2012 13:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
catch(...) is too quirky IMO. I have rather used
template <class T>
void XmlizeByJsonize(XmlIO& xio, T& x)
{
	if(xio.IsStoring())
		StoreJsonValue(xio, StoreAsJsonValue(x));
	else {
		try {
			LoadFromJsonValue(x, LoadJsonValue(xio.Node()));
		}
		catch(JsonizeError e) {
			throw XmlError("xmlize by jsonize error: " + e);
		}
	}
}


please check..

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: why use fromsyschrset in the first sentence of the logfile?
Next Topic: XmlizeByJsonize() problem and proposed solution
Goto Forum:
  


Current Time: Fri May 10 05:49:02 CEST 2024

Total time taken to generate the page: 0.01616 seconds