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 » More Xmlize functions
Re: More Xmlize functions [message #25554 is a reply to message #25532] Mon, 01 March 2010 11:17 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
luzr wrote on Sun, 28 February 2010 09:28

mdelfede wrote on Sat, 27 February 2010 17:51

Well, mostly because I needed some processing on ctrls loading.
My xmlizers were mostly aimed to solve a concrete problem, they are not generic ones.
BTW, I think it would be good to incorporate xmlize into ctrl, and to add OnLoad / OnStore handlers, I guess it could solve most streaming issues.

Ciao

Max



That would mean all XML stuff gets always linked in. Something I am not really happy about...


Anyways, I don't think a generic ctrl Xmlizer would be very useful, at least, not a simple one. With the OnLoad/OnStore handlers( btw, you'd need a BeforeStore and AfterLoad ones, to be precise...) things would be better, but you'd have to link xml everywhere.

But, with Value xmlized now, to store/load controls becomes trivial.
A generic xmlizer would have problems, for example, with droplists which content depends/links to other controls which are in turn xmlized. On my code, most of the work is to keep in sync all that, not the streaming code itself which is really trivial.

More, In my code I store/internally use values in a single set of units (for example, Newton, mm, N/mm2, and so on) converting on the fly between textual controls contents which is user-customizable. So, when streaming in/out controls I have to perform such conversion, too.
That would be hardly achieved by a generic Xmlizer.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Loss of digits in double Xmlize
Next Topic: FormatDouble and numbers under 1e-15
Goto Forum:
  


Current Time: Mon May 12 01:06:47 CEST 2025

Total time taken to generate the page: 0.05366 seconds