Public Member Functions | Data Fields
parse_result Struct Reference

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

#include <xml_parse_utils.h>

Public Member Functions

 parse_result (std::unique_ptr< pugi::xml_document > &&xml, std::string error_msg)
 Constructs parse_result with pugi::xml_document and an error message. More...
 

Data Fields

std::unique_ptr< pugi::xml_document > xml
 A XML document.
 
std::string error_msg {}
 An error message.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ parse_result()

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

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

Parameters
xmlThe pugi::xml_document
[in]error_msgThe error message

The documentation for this struct was generated from the following file: