nifti_user/ocu/src/InFieldPicsManager.cpp
BOOST_FOREACH(InFieldPicsManager::Listener* l, listeners)
                    {
                        if (picture->completeFile.size() == 0)
                        {
                            l->onNewInFieldPicTaken(picture);
                        }
                        else
                        {
                            l->onInFieldPicReceived(picture);
                        }
                    }
// Calls the listeners to tell them about the new picture
Calls the listeners to tell them about the new picture
Calls the listeners to tell them about the new picture
BOOST_FOREACH(InFieldPicsManager::Listener* l, listeners)
                    {
                        if (picture->completeFile.size() == 0)
                        {
                            l->onNewInFieldPicTaken(picture);
                        }
                        else
                        {
                            l->onInFieldPicReceived(picture);
                        }
                    }
BOOST_FOREACH ( InFieldPicsManager :: Listener * l , listeners ) { if ( picture -> completeFile . size ( ) == 0 ) { l -> onNewInFieldPicTaken ( picture ) ; } else { l -> onInFieldPicReceived ( picture ) ; } }
Calls the listeners to tell them about the new picture
Calls the listeners to tell them about the new picture