src/common/modfactory.cpp
const ModuleList ModuleFactory::getModules()
{
    //FIXME!!! move it to lib factory class
    StringList ids = getModuleIDs();
    Locker lock(&m_lock);
    for(StringList::iterator id = ids.begin(); id != ids.end(); id++)
    {
        IModulePtr module = getModuleUnsafe(*id);
        if (!module)
        {
            // not found here
            // will try to find at the modules description
            module = getLibFactory()->getModule(*id);
            BOOST_ASSERT(module);
            if (module)
            {
                addModule(module);
            }
        }

    }
    return m_modules;
}
// Retrives all modules in the form of list
Retrives all modules in the form of list
Retrives all modules in the form of list
const ModuleList ModuleFactory::getModules()
{
    StringList ids = getModuleIDs();
    Locker lock(&m_lock);
    for(StringList::iterator id = ids.begin(); id != ids.end(); id++)
    {
        IModulePtr module = getModuleUnsafe(*id);
        if (!module)
        {
            module = getLibFactory()->getModule(*id);
            BOOST_ASSERT(module);
            if (module)
            {
                addModule(module);
            }
        }
    }
    return m_modules;
}
const ModuleList ModuleFactory :: getModules ( ) { StringList ids = getModuleIDs ( ) ; Locker lock ( & m_lock ) ; for ( StringList :: iterator id = ids . begin ( ) ; id != ids . end ( ) ; id ++ ) { IModulePtr module = getModuleUnsafe ( * id ) ; if ( ! module ) { module = getLibFactory ( ) -> getModule ( * id ) ; BOOST_ASSERT ( module ) ; if ( module ) { addModule ( module ) ; } } } return m_modules ; }
Retrives all modules in the form of list
Retrives all modules in the form of list
//FIXME!!! move it to lib factory class // not found here // will try to find at the modules description