QFile file(fileName);
if(!file.open(QIODevice::ReadOnly))
{
QMessageBox::information(this, tr("Unable to open file"),
file.errorString());
return;
}
QDataStream in(&file);
QString str;
in >> str;
std::stringstream stream;
stream << str.toStdString();
YAML::Parser parser(stream);
YAML::Node doc;
std::map< std::string, std::string > entry;
parser.GetNextDocument(doc);