model_server/machine_prefs/src/pref_registry.cxx
// Method to get the index for keyname.
Method to get the index for keyname.
Method to get the index for keyname .
bool prefRegistry::getTableIndex(const char* key, int& index)
{
    Initialize(prefRegistry::getTableIndex);
    prefNode* found = NULL;
    if (key) {
      prefKey k(key);
      found = (prefNode*)prefBtree->find(k);
    }
    if (found)
      index = found->get_index();
    return(found != NULL);
}
bool prefRegistry :: getTableIndex ( const char * key , int & index ) { Initialize ( prefRegistry :: getTableIndex ) ; prefNode * found = NULL ; if ( key ) { prefKey k ( key ) ; found = ( prefNode * ) prefBtree -> find ( k ) ; } if ( found ) index = found -> get_index ( ) ; return ( found != NULL ) ; }
Method to get the index for keyname.
Method to get the index for keyname .