17 #include <libxml/xmlmemory.h> 18 #include <libxml/tree.h> 27 cur = cur->xmlChildrenNode;
28 bool something =
false;
50 it_tag->second->put(cur);
64 m_param[aname] = std::make_unique<OhmmsParameter<PDT>>(aparam, aname, std::move(candidate_values), status);
82 std::vector<qmcplusplus::astring>,
84 template void ParameterSet::add<int>(
int&,
const std::string&, std::vector<int>,
TagStatus);
85 template void ParameterSet::add<bool>(
bool&,
const std::string&, std::vector<bool>,
TagStatus);
86 template void ParameterSet::add<double>(
double&,
const std::string&, std::vector<double>,
TagStatus);
87 template void ParameterSet::add<float>(
float&,
const std::string&, std::vector<float>,
TagStatus);
88 template void ParameterSet::add<std::complex<double>>(std::complex<double>&,
90 std::vector<std::complex<double>>,
92 template void ParameterSet::add<std::complex<float>>(std::complex<float>&,
94 std::vector<std::complex<float>>,
99 std::vector<qmcplusplus::TinyVector<int, 3u>>,
102 template void ParameterSet::setValue<int>(
const std::string& aname_in,
int aval);
helper functions for EinsplineSetBuilder
std::string myName
the name of the node, corresponds to the xml tag
std::map< std::string, std::unique_ptr< OhmmsElementBase > > m_param
A collection of put/get functions to read from or write to a xmlNode defined in libxml2.
bool put(std::istream &is) override
read from std::istream
void setValue(const std::string &aname_in, PDT aval)
std::string lowerCase(const std::string_view s)
++17
char * castXMLCharToChar(xmlChar *c)
assign a value from a node. Use specialization for classes.
std::string getXMLAttributeValue(const xmlNodePtr cur, const std::string_view name)
get the value string for attribute name if name is unfound in cur you get an empty string back this i...
void add(PDT &aparam, const std::string &aname_in, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new parameter corresponding to an xmlNode <parameter>
TagStatus
generic class for parameter xmlNode