Exemple #1
0
void
Properties::remove( const std::string& key )
{
    std::string nkey = normalize( key );
    for( Properties::iterator i = begin(); i != end(); i++ )
    {
        if ( i->getName() == nkey )
        {
            erase( i );
            return;
        }
    }
}
Exemple #2
0
osg::Referenced*
Properties::getRefValue( const std::string& key )
{
    std::string nkey = normalize( key );
    for( Properties::iterator i = begin(); i != end(); i++ )
    {
        if ( i->getName() == nkey )
        {
            return i->getRefValue();
        }
    }
    return NULL;
}