pelican/core/test/src/DirectStreamDataClientTest.cpp
/**
 * @details
 * Set-up routine called before running each test.
 */
@details
Set-up routine called before running each test.
@details Set - up routine called before running each test .
void DirectStreamDataClientTest::setUp()
{
    QString pipelineXml = ""
            "<buffers>"
            "   <DoubleData>"
            "       <buffer maxSize=\"2000\"/>"
            "   </DoubleData>"
            "</buffers>"
            "<chunkers>"
            "    <TestUdpChunker name=\"a\">"
            "       <connection host=\"127.0.0.1\" port=\"2002\"/>"
            "       <data type=\"DoubleData\" chunkSize=\"512\"/>"
            "    </TestUdpChunker>"
            "    <TestUdpChunker name=\"b\">"
            "       <connection host=\"127.0.0.1\" port=\"2003\"/>"
            "       <data type=\"DoubleData\" chunkSize=\"512\"/>"
            "    </TestUdpChunker>"
            "</chunkers>"
            "<clients>"
            "    <DirectStreamDataClient>"
            "        <data type=\"DoubleData\" adapter=\"AdapterRealData\"/>"
            "    </DirectStreamDataClient>"
            "</clients>"
            "<adapters>"
            "   <AdapterRealData>"
            "       <antennas number=\"2\"/>"
            "       <channels start=\"0\" end=\"1\"/>"
            "       <polarisation value=\"both\"/>"
            "       <dataBytes number=\"8\"/>"
            "   </AdapterRealData>"
            "</adapters>";
    _config = new Config;
    _config->setFromString(pipelineXml);
    _emulatorConfig1 = new ConfigNode;
    _emulatorConfig2 = new ConfigNode;
    _emulatorConfig1->setFromString(""
            "<RealUdpEmulator>"
            "    <connection host=\"127.0.0.1\" port=\"2002\"/>"
            "    <packet size=\"512\" interval=\"1000\" initialValue=\"0.1\" number=\"-1\"/>"
            "</RealUdpEmulator>"
    );
    _emulatorConfig2->setFromString(""
            "<RealUdpEmulator>"
            "    <connection host=\"127.0.0.1\" port=\"2003\"/>"
            "    <packet size=\"512\" interval=\"1000\" initialValue=\"0.2\" number=\"-1\"/>"
            "</RealUdpEmulator>"
    );
}
void DirectStreamDataClientTest :: setUp ( ) { QString pipelineXml = " " " " " " " \" \" " " " " " " " " \" \" " " \" \" \" \" " " \" \" \" \" " " " " \" \" " " \" \" \" \" " " \" \" \" \" " " " " " " " " " " \" \" \" \" " " " " " " " " " " \" \" " " \" \" \" \" " " \" \" " " \" \" " " " " " ; _config = new Config ; _config -> setFromString ( pipelineXml ) ; _emulatorConfig1 = new ConfigNode ; _emulatorConfig2 = new ConfigNode ; _emulatorConfig1 -> setFromString ( " " " " " \" \" \" \" " " \" \" \" \" \" \" \" \" " " " ) ; _emulatorConfig2 -> setFromString ( " " " " " \" \" \" \" " " \" \" \" \" \" \" \" \" " " " ) ; }
@details
 Set-up routine called before running each test.
@details Set - up routine called before running each test .
// Set up the emulator configuration.