----------------------------------------------------------------------------- VController::getObject( pLabel ); Returns the group with the given name. If no group belongs to the Controller with that name, then a NULL value is returned. -----------------------------------------------------------------------------
| 451 | // |
| 452 | //----------------------------------------------------------------------------- |
| 453 | VGroup *VController::getObject( const String &pLabel ) |
| 454 | { |
| 455 | VGroup *node = ( VGroup* )mChildNode; |
| 456 | while ( node ) |
| 457 | { |
| 458 | // Compare Names. |
| 459 | if ( node->getLabel().equal( pLabel, String::NoCase ) ) |
| 460 | { |
| 461 | // Valid. |
| 462 | return node; |
| 463 | } |
| 464 | |
| 465 | // Next Sibling. |
| 466 | node = ( VGroup* )node->mSiblingNextNode; |
| 467 | } |
| 468 | |
| 469 | // Invalid. |
| 470 | return NULL; |
| 471 | } |
| 472 | |
| 473 | //----------------------------------------------------------------------------- |
| 474 | // |