C ++ Object Saving Library Looks Like Forever

I am looking for a C ++ object persistence library to replace the Eternity library that I have been working with for about a day. Eternity library has come to its senses.

I created a hierarchy of objects like this:

object heirarchy

I have std::listof ArchiveJob*, which I would like to save and restore in XML format. Each ArchiveJobhas different child objects, some of which are allocated on the stack, some on the heap.

Eternity did a great job of saving these objects correctly, but failed to restore them.

(for those familiar with Eternity, the next restore operation was not able to read data from an XML file)

xml_read( sequence<pointers>(), *pList, pList->begin(), xml, "ScheduleList" );

This call allocated memory for the object ArchiveJob, but all of its children were uninitialized.

- , :

  • / STL
  • Windows- (, , VS200x)

XML ? , STL?

+3
2

Boost Serialization - , :

  • - Windows, , VS2008

[EDIT] , VS7.1

+3

Google. XML, XML. , .

0

Source: https://habr.com/ru/post/1787943/


All Articles