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 » serialization
serialization [message #2144] Sun, 02 April 2006 13:18 Go to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

In the serialize reference example, this code appears to cleverly handle both the saving and restoring - is that correct?

	void Serialize(Stream& s)
	{
		s % q % text % data;
	}


Suppose you have 100 items to save/restore - is there any reason not to chain all together in one long expression?

Comparing with .ini file, suppose some objects get removed - is there any alternative to having "dummy" objects of the correct type so that you can still read in data that was saved with now obsolete items?

Graeme
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: c++ 17 support
Next Topic: strange behaviour of Vector serialization
Goto Forum:
  


Current Time: Thu Apr 25 21:27:47 CEST 2024

Total time taken to generate the page: 0.03092 seconds