pelican/examples/tutorial/src/SignalDataAdapter.cpp
// Construct the signal data adapter.
Construct the signal data adapter.
Construct the signal data adapter .
SignalDataAdapter::SignalDataAdapter(const ConfigNode& config)
    : AbstractStreamAdapter(config)
{
    _samplesPerPacket = config.getOption("packet", "samples").toUInt();
    _packetSize = _headerSize + _samplesPerPacket * sizeof(float);
}
SignalDataAdapter :: SignalDataAdapter ( const ConfigNode & config ) : AbstractStreamAdapter ( config ) { _samplesPerPacket = config . getOption ( " " , " " ) . toUInt ( ) ; _packetSize = _headerSize + _samplesPerPacket * sizeof ( float ) ; }
Construct the signal data adapter.
Construct the signal data adapter .
// Read the configuration using configuration node utility methods. // Set up the packet data.