pelican/utility/src/Config.cpp
/**
 * @details
 * Gets value of the text node at the address. If multiple text nodes are
 * found at the same level they will be concatenated.
 */
@details
Gets value of the text node at the address. If multiple text nodes are
found at the same level they will be concatenated.
@details Gets value of the text node at the address . If multiple text nodes are found at the same level they will be concatenated .
QString Config::getText(const TreeAddress& address) const
{
    QDomElement e = _get(address, _document);
    QDomNodeList children = e.childNodes();
    QString text = QString();
    if (children.isEmpty()) {
        return text;
    }
    else {
        for (int c = 0; c < children.size(); c++) {
            if (children.at(c).nodeType() == QDomNode::TextNode) {
                text += children.at(c).nodeValue();
            }
        }
    }
    return text;
}
QString Config :: getText ( const TreeAddress & address ) const { QDomElement e = _get ( address , _document ) ; QDomNodeList children = e . childNodes ( ) ; QString text = QString ( ) ; if ( children . isEmpty ( ) ) { return text ; } else { for ( int c = 0 ; c < children . size ( ) ; c ++ ) { if ( children . at ( c ) . nodeType ( ) == QDomNode :: TextNode ) { text += children . at ( c ) . nodeValue ( ) ; } } } return text ; }
@details
 Gets value of the text node at the address.
@details Gets value of the text node at the address .