
"Reece Dunn" wrote:
Wouldn't it be easier (for user) to specify template-like file (HTML + some marks) and the library would fill in marked areas with data?
Sure. However, you would probably need a Spirit grammar to process it, adding a dependancy and making the code more complex.
Yes but such tradeoff is positive to end user.
If you want a debug dump, you can output the STL container directly:
std::cout << "vector = " << vec << '\n';
One often needs dump of quite complex data structures. Controlling their visual appearance from C++ code feels as large burden. As the ideal solution I would imagine something what takes the dumped data and with using some heuristics arranges them into most readable form. User the could rearrange the data on HTML page (e.g. using Javascript) and this re-arrangement would be stored somewhere and used next time these data are shown. /Pavel