VHISTlib  1.84.0.3018
parse_example1.cpp

This example shows how to open a VHIST file using a vhist::VhistParser.

/* $HEADERS
 $Id: parse_example1.cpp 2179 2011-06-24 09:03:24Z ahuesgen $
 */

#include <unvhistlib/vhistparser.h>

// ...

// create a new parser
vhist::VhistParser parser;

// open (and parse) a VHIST file
parser.open("myfile.vhist");

// read all file and section tags
FileTagList files = parser.getFiles();
SectionTagList sections = parser.getSections();

for (int i = 0; i < files.count(); i++)
{
    // perform some operations on the files
}

for (int i = 0; i < sections.count(); i++)
{
    // perform some operations on the sections
}


VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.