VirtualTable SaveToFile Method

VirtualTable SaveToFile Method

Postby sir.wally.lewis » Mon 17 Nov 2014 01:08

VirtualTable looks very exciting.

I have been looking for a memory dataset that I could save to file in a win32 system and load from file in a linux64 system.

Can virtual table handle that?

ie. It needs to save to a format that does not depend on "sizeof".

An XML format would be perfect.
sir.wally.lewis
 
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: VirtualTable SaveToFile Method

Postby AlexP » Mon 17 Nov 2014 09:29

Hello,

You can use methods SaveToFile and LoadFromFile for data loading and saving in VirtualTable on all the supported platforms. Data will be saved as binaries. To save to XML, you can use the SaveToXML method (loading from XML is not supported).
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35

Re: VirtualTable SaveToFile Method

Postby sir.wally.lewis » Mon 17 Nov 2014 22:51

That is a bugger that LoadFromXML is not supported, it seems logical to me that if you save to XML you should also load from XML. Binary format is CPU dependent as it uses (sizeof(integer/char/etc..)) to determine the width of an element and that will be different in different systems,( win32/linux64). So for me the only logical solution is using LoadFroMXML, do you know if LoadfromXML might be supported in the future?
sir.wally.lewis
 
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: VirtualTable SaveToFile Method

Postby AlexP » Tue 18 Nov 2014 09:16

Sorry for inaccuracy. You can load data from the XML format (saved with the SaveToXML method) with the LoadFromFile method (having specified the generated XML file as a parameter)
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35


Return to VirtualDAC