mercredi 22 juin 2016

how cereal load or save XML attribute

I'm trying to save/load XML file use cereal, but can not figure out how to save/load XML attribute. For example:

I have a XML file:

<windows height="101", width = "200"/> 

and a struct

struct window
{
    int height;
    int width;
}

how can i define serialize function to load/save XML attribute value using cereal?

Aucun commentaire:

Enregistrer un commentaire