pelican/output/src/DataBlobFile.cpp
// Sends the data blob to the output stream.
Sends the data blob to the output stream.
Sends the data blob to the output stream .
void DataBlobFile::sendStream(const QString& ,
        const DataBlob* blob)
{
    foreach (QIODevice* device, _devices) {
        const QString& type=blob->type();
        if( _hetero[device] ) {
            DataBlobFileType::writeType( type, device);
        }
        else if( type !=  _blobType ) {
             if( _blobType == "" ) {
                 DataBlobFileType::writeType( type, device);
                 _blobType=type;
             }
             else {
                verbose( QString("Attempt to write a DataBlob of type " + type
                             + " to homogenous file of type " + _blobType ));
                continue;
             }
        }
        blob->serialise(*device);
    }
}
void DataBlobFile :: sendStream ( const QString & , const DataBlob * blob ) { foreach ( QIODevice * device , _devices ) { const QString & type = blob -> type ( ) ; if ( _hetero [ device ] ) { DataBlobFileType :: writeType ( type , device ) ; } else if ( type != _blobType ) { if ( _blobType == " " ) { DataBlobFileType :: writeType ( type , device ) ; _blobType = type ; } else { verbose ( QString ( " " + type + " " + _blobType ) ) ; continue ; } } blob -> serialise ( * device ) ; } }
Sends the data blob to the output stream.
Sends the data blob to the output stream .
/*streamName*/ // Output the string to each file // mark the blob type for heterogeneous blob files