pelican/utility/src/Config.cpp
/**
 * @details
 * Sets the content of the configuration QDomDocument from the QStrings
 * \p pipelineConfig, \p serverConfig and \p nodesets.
 *
 * @param[in] pipelineConfig String containing the pipeline XML configuration.
 * @param[in] serverConfig String containing server XML configuration.
 */
@details
Sets the content of the configuration QDomDocument from the QStrings
\p pipelineConfig, \p serverConfig and \p nodesets.

@param[in] pipelineConfig String containing the pipeline XML configuration.
@param[in] serverConfig String containing server XML configuration.
@details Sets the content of the configuration QDomDocument from the QStrings \ p pipelineConfig \ p serverConfig and \ p nodesets . @param [ in ] pipelineConfig String containing the pipeline XML configuration . @param [ in ] serverConfig String containing server XML configuration .
void Config::setFromString(const QString& pipelineConfig,
        const QString& serverConfig, const QString& nodesets)
{
    _document.clear();
    _document = QDomDocument("pelican");
    QString xmlDoc =
            "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
            "<!DOCTYPE pelican>"
            "<configuration version=\"1.0\">"
            "<pipeline>"
            "" + pipelineConfig + ""
            "</pipeline>"
            "<server>"
            "" + serverConfig + ""
            "</server>"
            "<nodesets>"
            "" + nodesets + ""
            "</nodesets>"
            "</configuration>";
    setXML( xmlDoc );
}
void Config :: setFromString ( const QString & pipelineConfig , const QString & serverConfig , const QString & nodesets ) { _document . clear ( ) ; _document = QDomDocument ( " " ) ; QString xmlDoc = " \" \" \" \" " " " " \" \" " " " " " + pipelineConfig + " " " " " " " " + serverConfig + " " " " " " " " + nodesets + " " " " " " ; setXML ( xmlDoc ) ; }
@details
 Sets the content of the configuration QDomDocument from the QStrings
 \p pipelineConfig, \p serverConfig and \p nodesets.
@details Sets the content of the configuration QDomDocument from the QStrings \ p pipelineConfig \ p serverConfig and \ p nodesets .