ATLAS Offline Software
Loading...
Searching...
No Matches
XMLParserUtilities.h File Reference

Various text/ptr utilities to use in the ExpatCoreParser. More...

#include <expat.h>
#include <cstdlib>
#include <string>
#include <source_location>
#include <memory>
#include <iostream>
Include dependency graph for XMLParserUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XmlParser::XMLParserDeleter
 deleter for a unique_ptr<XML_Parser> More...

Namespaces

namespace  XmlParser

Typedefs

using XmlParser::XMLParserPtr = std::unique_ptr<std::remove_pointer_t<XML_Parser>, XMLParserDeleter>
 RAII XMLParser pointer.

Functions

std::string XmlParser::xmlFileName (const std::string &fname, const std::string &prefix="")
 find the xml file locally or on the datapath, return the full filename
bool XmlParser::debug_enabled ()
 true if XML debug mode is enabled in the environment
std::string XmlParser::label (const std::source_location loc=std::source_location::current())
 report function name in a string, for debugging
XMLParserPtr XmlParser::make_parser ()
 Create an RAII XMLParser pointer.
std::string XmlParser::rtrim (const XML_Char *s, int len)
 Trim newline from end of a XML_Char * , return the trimmed string as std::string.

Detailed Description

Various text/ptr utilities to use in the ExpatCoreParser.

Author
Shaun Roe
Date
April, 2026

Definition in file XMLParserUtilities.h.