pelican/server/src/DataManager.cpp
/**
 * @details
 * We make the assumption that this method will not be called with an
 * invalid type. No checking in order to speed things up.
 */
@details
We make the assumption that this method will not be called with an
invalid type. No checking in order to speed things up.
@details We make the assumption that this method will not be called with an invalid type . No checking in order to speed things up .
LockedData DataManager::getNext(const QString& type,
        const QSet<QString>& associateData)
{
    LockedData lockedData = getNext(type);
    if (lockedData.isValid())
    {
        LockableStreamData* streamData =
                static_cast<LockableStreamData*>(lockedData.object());
        QSet<QString> test = streamData->associateDataTypes();
#ifdef BROKEN_QT_SET_HEADER
        QSet<QString> temp = associateData;
        if (!(temp - test).isEmpty()) {
#else
        if (!(associateData - test).isEmpty()) {
#endif
            return LockedData(0);
        }
    }
    return lockedData;
}
LockedData DataManager :: getNext ( const QString & type , const QSet < QString > & associateData ) { LockedData lockedData = getNext ( type ) ; if ( lockedData . isValid ( ) ) { LockableStreamData * streamData = static_cast < LockableStreamData * > ( lockedData . object ( ) ) ; QSet < QString > test = streamData -> associateDataTypes ( ) ; #ifdef BROKEN_QT_SET_HEADER QSet < QString > temp = associateData ; if ( ! ( temp - test ) . isEmpty ( ) ) { #else 
        if (!(associateData - test).isEmpty()) { #endif 
            return LockedData(0); } } return lockedData ; }
@details
 We make the assumption that this method will not be called with an
 invalid type.
@details We make the assumption that this method will not be called with an invalid type .
// check it contains valid associateData  // BROKEN_QT_SET_HEADER