UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
util::xml Namespace Reference

The xml namespace is used for XML related classes and functions. More...

Classes

class  IXmlFile
 Interface class that defines an XML parser. More...
class  IXmlNode
 Interface class against a XML tag (node) in a XML file. More...

Functions

std::unique_ptr< IXmlFileCreateXmlFile (const std::string &type="Expat")
 Creates an XML object that either parse or write.

Detailed Description

The xml namespace is used for all XML and Expat related classes and functions.

Function Documentation

◆ CreateXmlFile()

std::unique_ptr< IXmlFile > util::xml::CreateXmlFile ( const std::string & type = "Expat")
nodiscard

Creates an XML object that either parse a file or string or saves the object to an XML file.

Parameters
typeString that creates an implementation of an XML object. By default is the Expat parser used. Choose 'Expat' or 'FileWriter'. The latter only creates an XML file.
Returns
A smart pointer to an XML object. Creates a XML parser