Exemplo n.º 1
0
/*! Sets the option \a name to \a value for the SceneFileType that handles
    files with the given \a suffix.
    Returns \c true if the option was set successfully, \c false otherwise. 
    
    \param[in] suffix File extension to choose the scene file type
                      this option applies to.
    \param[in] name Name of the option.
    \param[in] value Value of the option.
    \return Whether the value was set successfully.
 */
bool
    SceneFileHandlerBase::setOption(
        const std::string &suffix,
        const std::string &name,
        const std::string &value  )
{
    bool           retVal = false;
    SceneFileType *type   = getFileType(suffix.c_str());
    
    if(type != NULL)
    {
        type->setOption(name, value);
        retVal = true;
    }
    
    return retVal;    
}