QMCPACK
libxmldefs.cpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2021 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #include "libxmldefs.h"
13 #include "ModernStringUtils.hpp"
14 
15 std::string getNodeName(xmlNodePtr cur)
16 {
17  return qmcplusplus::lowerCase(castXMLCharToChar(cur->name));
18 }
A collection of put/get functions to read from or write to a xmlNode defined in libxml2.
std::string lowerCase(const std::string_view s)
++17
char * castXMLCharToChar(xmlChar *c)
assign a value from a node. Use specialization for classes.
Definition: libxmldefs.h:62
std::string getNodeName(xmlNodePtr cur)
Definition: libxmldefs.cpp:15