[gmx-developers] XML and std::map?

Vedran Miletić rivanvx at gmail.com
Tue Sep 22 11:47:31 CEST 2015

2015-09-21 22:29 GMT+02:00 David van der Spoel <spoel at xray.bmc.uu.se>:
> Hi,
> one possibility to store the contents of an XML file without reinventing
> many wheels would be to use std::map. I.e.
> std::map *readXml(std::string filename);
> Some background reference on the map data structure:
> http://www.cplusplus.com/reference/map/map/
> Before I spend any time on this I would like to invite some feedback.
> Advantages: standard stuff with iterators etc.
> Disadvantages: don't know (yet).

Hello David,

would the approach you have in mind imply some kind of nested
std::map<std::string, std::map<...> > type?


Vedran Miletić

More information about the gromacs.org_gmx-developers mailing list