struct parse_result

Overview

A XML parse result structure with an error message and the pugi::xml_document document. More…

#include <xml_parse_utils.h>

struct parse_result
{
    // fields

    std::unique_ptr<pugi::xml_document> xml;
    std::string error_msg {};

    // construction

    parse_result(std::unique_ptr<pugi::xml_document>&& xml, std::string error_msg);
};

Detailed Documentation

A XML parse result structure with an error message and the pugi::xml_document document.

Fields

std::unique_ptr<pugi::xml_document> xml

A XML document.

std::string error_msg {}

An error message.

Construction

parse_result(std::unique_ptr<pugi::xml_document>&& xml, std::string error_msg)

Constructs parse_result with pugi::xml_document and an error message.

Parameters:

xml

The pugi::xml_document

error_msg

The error message