pelican/utility/src/ConfigNode.cpp
/**
 * @details
 * Creates a new configuration node.
 */
@details
Creates a new configuration node.
@details Creates a new configuration node .
ConfigNode::ConfigNode(const QList<QDomElement>& config)
{
    if (config.size() == 0) return;
    _config = config[0];
    for (int i = 1; i < config.size(); i++) {
        QDomNodeList list = config[i].childNodes();
        for (int j = 0; j < list.size(); j++) {
            _config.appendChild(list.at(j).cloneNode());
        }
    }
}
ConfigNode :: ConfigNode ( const QList < QDomElement > & config ) { if ( config . size ( ) == 0 ) return ; _config = config [ 0 ] ; for ( int i = 1 ; i < config . size ( ) ; i ++ ) { QDomNodeList list = config [ i ] . childNodes ( ) ; for ( int j = 0 ; j < list . size ( ) ; j ++ ) { _config . appendChild ( list . at ( j ) . cloneNode ( ) ) ; } } }
@details
 Creates a new configuration node.
@details Creates a new configuration node .
// Do nothing if list is empty. // Copy the base node. // Loop over additional nodes. // Loop over each child in the node set and append it.