----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
| 452 | // |
| 453 | //----------------------------------------------------------------------------- |
| 454 | VGroup *VController::getObject( const String &pLabel ) |
| 455 | { |
| 456 | VGroup *node = ( VGroup* )mChildNode; |
| 457 | while ( node ) |
| 458 | { |
| 459 | // Compare Names. |
| 460 | if ( node->getLabel().equal( pLabel, String::NoCase ) ) |
| 461 | { |
| 462 | // Valid. |
| 463 | return node; |
| 464 | } |
| 465 | |
| 466 | // Next Sibling. |
| 467 | node = ( VGroup* )node->mSiblingNextNode; |
| 468 | } |
| 469 | |
| 470 | // Invalid. |
| 471 | return NULL; |
| 472 | } |
| 473 | |
| 474 | //----------------------------------------------------------------------------- |
| 475 | // |