| 472 | // ------------ |
| 473 | |
| 474 | void |
| 475 | XMPMeta::SetArrayItem ( XMP_StringPtr schemaNS, |
| 476 | XMP_StringPtr arrayName, |
| 477 | XMP_Index itemIndex, |
| 478 | XMP_StringPtr itemValue, |
| 479 | XMP_OptionBits options ) |
| 480 | { |
| 481 | XMP_Assert ( (schemaNS != 0) && (arrayName != 0) ); // Enforced by wrapper. |
| 482 | |
| 483 | XMP_ExpandedXPath arrayPath; |
| 484 | ExpandXPath ( schemaNS, arrayName, &arrayPath ); |
| 485 | XMP_Node * arrayNode = FindNode ( &tree, arrayPath, kXMP_ExistingOnly ); // Just lookup, don't try to create. |
| 486 | if ( arrayNode == 0 ) XMP_Throw ( "Specified array does not exist", kXMPErr_BadXPath ); |
| 487 | |
| 488 | DoSetArrayItem ( arrayNode, itemIndex, itemValue, options ); |
| 489 | |
| 490 | } // SetArrayItem |
| 491 | |
| 492 | |
| 493 | // ------------------------------------------------------------------------------------------------- |
no test coverage detected