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
}
libxmldefs.h
A collection of put/get functions to read from or write to a xmlNode defined in libxml2.
qmcplusplus::lowerCase
std::string lowerCase(const std::string_view s)
++17
Definition:
ModernStringUtils.cpp:22
castXMLCharToChar
char * castXMLCharToChar(xmlChar *c)
assign a value from a node. Use specialization for classes.
Definition:
libxmldefs.h:62
getNodeName
std::string getNodeName(xmlNodePtr cur)
Definition:
libxmldefs.cpp:15
ModernStringUtils.hpp
src
io
OhmmsData
libxmldefs.cpp
Generated on Fri Jun 28 2024 10:45:14 for QMCPACK by
1.8.14