![]() |
QMCPACK
|
Collaboration diagram for XmlNode:Public Types | |
| using | attrpair = std::pair< std::string, std::string > |
Public Member Functions | |
| std::string | getName () const |
| template<typename T > | |
| void | setName (const T &val) |
| int | getAttributeIndex (const std::string &name, int strict=0) const |
| template<typename T > | |
| void | getAttribute (const std::string &name, T &result) const |
| template<typename T > | |
| void | getAttribute (const char *name, T &result) const |
| std::string | getAttribute (const std::string &name) const |
| std::string | getAttribute (const char *name) const |
| std::string | getAttribute (int index) const |
| std::string | getAttributeName (int index) const |
| int | getNumAttributes () const |
| template<typename T , typename TT > | |
| void | addAttribute (const T &n, const TT &v) |
| template<typename T > | |
| void | addYesNoAttribute (const T &n, int i) |
| template<typename T > | |
| void | getValue (T &result) const |
| template<typename T > | |
| void | getValue (std::vector< T > &result) const |
| std::string | getValue () const |
| int | getValueSize () const |
| template<typename T > | |
| void | setValue (const T &v) |
| int | getNumChildren () const |
| int | getChildIndex (const std::string &name, int strict=0) const |
| XmlNode & | getChild (const std::string &name) |
| const XmlNode & | getChild (const std::string &name) const |
| const XmlNode & | getChild (int i) const |
| XmlNode & | getChild (int i) |
| XmlNode & | addChild (const XmlNode &nd) |
| XmlNode & | addChild () |
| template<typename T , typename TT > | |
| void | addParameterChild (const T &n, const TT &v) |
| template<typename T > | |
| void | addYesNoParameterChild (const T &n, int v) |
| XmlNode () | |
| XmlNode (std::istream *stream, int start=0, bool deferValue=false) | |
| XmlNode (const XmlStream &xstream, std::istream *const stream, int start, bool deferValue=false) | |
| XmlNode (const XmlNode &c) | |
| void | write (std::ostream &os, int indentLevel=0) const |
| std::string | getString (int indentLevel=0) const |
Private Member Functions | |
| void | readToString (std::string &s) const |
| void | createFromStream (const XmlStream &stream, int start=0, bool deferValue=true) |
| std::string | getInStr (int is) const |
| std::string | trimWhitespace (const std::string &str) const |
| size_t | getPosNextLiveChar (const std::string &str, char c) const |
| void | getNextKeyVal (std::string &contentstr, std::string &key, std::string &val) const |
| void | handleTagString (const XmlStream &xs, int loc) |
Private Attributes | |
| bool | isSelfClosing_ |
| std::string | name_ |
| std::vector< attrpair > | attributes_ |
| bool | valInline_ |
| std::string | value_ |
| bool | valueDeferred_ |
| std::streampos | podStart_ |
| std::streampos | podEnd_ |
| std::vector< XmlNode > | children_ |
| std::istream * | stream_ |
|
inline |
| XmlNode | ( | std::istream * | stream, |
| int | start = 0, |
||
| bool | deferValue = false |
||
| ) |
| XmlNode | ( | const XmlStream & | xstream, |
| std::istream *const | stream, | ||
| int | start, | ||
| bool | deferValue = false |
||
| ) |
Definition at line 722 of file XmlRep.cpp.
References createFromStream().
Definition at line 701 of file XmlRep.cpp.
References attributes_, children_, isSelfClosing_, name_, podEnd_, podStart_, valInline_, value_, and valueDeferred_.
| void addAttribute | ( | const T & | n, |
| const TT & | v | ||
| ) |
Definition at line 252 of file XmlRep.h.
References attributes_, and qmcplusplus::n.
Referenced by addParameterChild().
| XmlNode & addChild | ( | ) |
Definition at line 547 of file XmlRep.cpp.
References children_.
Referenced by addParameterChild().
| void addParameterChild | ( | const T & | n, |
| const TT & | v | ||
| ) |
Definition at line 281 of file XmlRep.h.
References addAttribute(), addChild(), qmcplusplus::n, setName(), setValue(), and valInline_.
Referenced by addYesNoParameterChild().
| void addYesNoAttribute | ( | const T & | n, |
| int | i | ||
| ) |
| void addYesNoParameterChild | ( | const T & | n, |
| int | v | ||
| ) |
|
private |
Definition at line 727 of file XmlRep.cpp.
References children_, XmlStream::elements, XmlStream::findChildElements(), handleTagString(), isSelfClosing_, podEnd_, podStart_, readToString(), selfClosing, stream_, valInline_, value_, and valueDeferred_.
Referenced by XmlNode().
| void getAttribute | ( | const std::string & | name, |
| T & | result | ||
| ) | const |
Definition at line 191 of file XmlRep.h.
References attributes_, and getAttributeIndex().
Referenced by getAttribute(), EshdfFile::handleDensity(), EshdfFile::processKPts(), EshdfFile::readInEigFcn(), EshdfFile::writeQboxAtoms(), EshdfFile::writeQboxElectrons(), EshdfFile::writeQboxSupercell(), EshdfFile::writeQEAtoms(), and EshdfFile::writeQEBoilerPlate().
| void getAttribute | ( | const char * | name, |
| T & | result | ||
| ) | const |
Definition at line 199 of file XmlRep.h.
References getAttribute().
| string getAttribute | ( | const std::string & | name | ) | const |
Definition at line 513 of file XmlRep.cpp.
References attributes_, and getAttributeIndex().
| string getAttribute | ( | const char * | name | ) | const |
Definition at line 515 of file XmlRep.cpp.
References getAttribute().
| string getAttribute | ( | int | index | ) | const |
| int getAttributeIndex | ( | const std::string & | name, |
| int | strict = 0 |
||
| ) | const |
Definition at line 482 of file XmlRep.cpp.
References attributes_, and name_.
Referenced by getAttribute(), and EshdfFile::writeQboxElectrons().
| string getAttributeName | ( | int | index | ) | const |
| XmlNode & getChild | ( | const std::string & | name | ) |
Definition at line 458 of file XmlRep.cpp.
References getChildIndex().
Referenced by getChild(), EshdfFile::getOccupation(), EshdfFile::getPtvs(), EshdfFile::handleDensity(), EshdfFile::handleSpinGroup(), EshdfFile::processKPts(), EshdfFile::writeQboxAtoms(), EshdfFile::writeQboxBoilerPlate(), EshdfFile::writeQboxElectrons(), EshdfFile::writeQboxSupercell(), EshdfFile::writeQEAtoms(), EshdfFile::writeQEBoilerPlate(), EshdfFile::writeQEElectrons(), and EshdfFile::writeQESupercell().
| const XmlNode & getChild | ( | const std::string & | name | ) | const |
Definition at line 460 of file XmlRep.cpp.
References getChild(), and getChildIndex().
| const XmlNode & getChild | ( | int | i | ) | const |
Definition at line 472 of file XmlRep.cpp.
References children_, and getNumChildren().
| XmlNode & getChild | ( | int | i | ) |
Definition at line 462 of file XmlRep.cpp.
References children_, and getNumChildren().
| int getChildIndex | ( | const std::string & | name, |
| int | strict = 0 |
||
| ) | const |
Definition at line 440 of file XmlRep.cpp.
References children_, getName(), and name_.
Referenced by getChild().
|
private |
Definition at line 647 of file XmlRep.cpp.
Referenced by getString().
|
inline |
Definition at line 114 of file XmlRep.h.
References name_.
Referenced by getChildIndex(), EshdfFile::handleSpinGroup(), EshdfFile::processKPts(), EshdfFile::writeQboxAtoms(), EshdfFile::writeQboxElectrons(), and EshdfFile::writeQEAtoms().
|
private |
Definition at line 600 of file XmlRep.cpp.
References getPosNextLiveChar(), and trimWhitespace().
Referenced by handleTagString().
|
inline |
|
inline |
Definition at line 150 of file XmlRep.h.
References children_.
Referenced by getChild(), EshdfFile::handleSpinGroup(), EshdfFile::processKPts(), EshdfFile::writeQboxAtoms(), EshdfFile::writeQboxElectrons(), and EshdfFile::writeQEAtoms().
|
private |
Definition at line 626 of file XmlRep.cpp.
Referenced by getNextKeyVal().
| string getString | ( | int | indentLevel = 0 | ) | const |
Definition at line 663 of file XmlRep.cpp.
References attributes_, children_, getInStr(), getValue(), getValueSize(), isSelfClosing_, name_, and valInline_.
Referenced by write().
| void getValue | ( | T & | result | ) | const |
Definition at line 206 of file XmlRep.h.
References readToString(), value_, and valueDeferred_.
Referenced by EshdfFile::getOccupation(), EshdfFile::getPtvs(), EshdfFile::handleDensity(), EshdfFile::processKPts(), EshdfFile::readInEigFcn(), EshdfFile::writeQboxAtoms(), EshdfFile::writeQboxBoilerPlate(), EshdfFile::writeQEAtoms(), EshdfFile::writeQEElectrons(), and EshdfFile::writeQESupercell().
| void getValue | ( | std::vector< T > & | result | ) | const |
| std::string getValue | ( | ) | const |
Definition at line 521 of file XmlRep.cpp.
References readToString(), value_, and valueDeferred_.
Referenced by getString().
| int getValueSize | ( | ) | const |
Definition at line 532 of file XmlRep.cpp.
References podEnd_, podStart_, value_, and valueDeferred_.
Referenced by getString().
|
private |
Definition at line 566 of file XmlRep.cpp.
References attributes_, XmlStream::elements, getNextKeyVal(), XmlStream::getTag(), isSelfClosing_, XmlElement::name, name_, selfClosing, trimWhitespace(), and XmlElement::type.
Referenced by createFromStream().
|
private |
Definition at line 396 of file XmlRep.cpp.
References podEnd_, podStart_, qmcplusplus::Units::time::s, stream_, value_, and valueDeferred_.
Referenced by createFromStream(), and getValue().
| void setName | ( | const T & | val | ) |
| void setValue | ( | const T & | v | ) |
Definition at line 243 of file XmlRep.h.
References value_, and valueDeferred_.
Referenced by addParameterChild().
|
private |
Definition at line 555 of file XmlRep.cpp.
Referenced by getNextKeyVal(), and handleTagString().
| void write | ( | std::ostream & | os, |
| int | indentLevel = 0 |
||
| ) | const |
|
private |
Definition at line 90 of file XmlRep.h.
Referenced by addAttribute(), addYesNoAttribute(), getAttribute(), getAttributeIndex(), getAttributeName(), getNumAttributes(), getString(), handleTagString(), and XmlNode().
|
private |
Definition at line 97 of file XmlRep.h.
Referenced by addChild(), createFromStream(), getChild(), getChildIndex(), getNumChildren(), getString(), and XmlNode().
|
private |
Definition at line 88 of file XmlRep.h.
Referenced by createFromStream(), getString(), handleTagString(), and XmlNode().
|
private |
Definition at line 89 of file XmlRep.h.
Referenced by getAttribute(), getAttributeIndex(), getChildIndex(), getName(), getString(), handleTagString(), setName(), and XmlNode().
|
private |
Definition at line 96 of file XmlRep.h.
Referenced by createFromStream(), getValueSize(), readToString(), and XmlNode().
|
private |
Definition at line 95 of file XmlRep.h.
Referenced by createFromStream(), getValueSize(), readToString(), and XmlNode().
|
private |
Definition at line 98 of file XmlRep.h.
Referenced by createFromStream(), and readToString().
|
private |
Definition at line 91 of file XmlRep.h.
Referenced by addParameterChild(), createFromStream(), getString(), and XmlNode().
|
private |
Definition at line 92 of file XmlRep.h.
Referenced by createFromStream(), getValue(), getValueSize(), readToString(), setValue(), and XmlNode().
|
private |
Definition at line 93 of file XmlRep.h.
Referenced by createFromStream(), getValue(), getValueSize(), readToString(), setValue(), and XmlNode().