pelican/core/test/src/AdapterTester.cpp
/**
 * @details Constructs a AdapterTester object.
 */
@details Constructs a AdapterTester object.
@details Constructs a AdapterTester object .
AdapterTester::AdapterTester(const QString& type, const QString& config)
   : _device(0)
{
    Config::TreeAddress adapterBase;
    adapterBase << Config::NodeId("adapters", "");
    QString xml =
            "<adapters><" + type + ">"
          + config + "\n</" + type + ">\n</adapters>";
    _config.setXML(xml);
    _adapterFactory = new FactoryConfig<AbstractAdapter>(&_config, adapterBase );
    _object = _adapterFactory->create(type,"");
}
AdapterTester :: AdapterTester ( const QString & type , const QString & config ) : _device ( 0 ) { Config :: TreeAddress adapterBase ; adapterBase << Config :: NodeId ( " " , " " ) ; QString xml = " " + type + " " + config + " \n " + type + " \n " ; _config . setXML ( xml ) ; _adapterFactory = new FactoryConfig < AbstractAdapter > ( & _config , adapterBase ) ; _object = _adapterFactory -> create ( type , " " ) ; }
@details Constructs a AdapterTester object.
@details Constructs a AdapterTester object .
// Setup the XML configuration.