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 » About Serialization
Re: About Serialization [message #50768 is a reply to message #50767] Fri, 14 December 2018 12:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Tom1 wrote on Fri, 14 December 2018 11:34
Hi Mirek,

I would like to serialize 'Vector<Any> vec;', but Any does not have Serialize() available. How to proceed to accomplish this?

Best regards,

Tom


That is basically impossible for really generic case...

If the set of classes stored in Any is fixed, you can do that testing this fixed set of types, encoding the type when being stored and storing using types's Serialize, then on loading creating proper class based on encoded type and again Serialize it back.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AssertST problem in initialization when debugging on MSBT17x64
Next Topic: GetCsvLine
Goto Forum:
  


Current Time: Sat Jun 14 04:24:40 CEST 2025

Total time taken to generate the page: 0.04872 seconds