MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / WXMPMeta_SetArrayItem_1

Function WXMPMeta_SetArrayItem_1

xmpsdk/src/WXMPMeta.cpp:536–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534// -------------------------------------------------------------------------------------------------
535
536void
537WXMPMeta_SetArrayItem_1 ( XMPMetaRef xmpRef,
538 XMP_StringPtr schemaNS,
539 XMP_StringPtr arrayName,
540 XMP_Index itemIndex,
541 XMP_StringPtr itemValue,
542 XMP_OptionBits options,
543 WXMP_Result * wResult )
544{
545 XMP_ENTER_WRAPPER ( "WXMPMeta_SetArrayItem_1" )
546
547 if ( (schemaNS == 0) || (*schemaNS == 0) ) XMP_Throw ( "Empty schema namespace URI", kXMPErr_BadSchema );
548 if ( (arrayName == 0) || (*arrayName == 0) ) XMP_Throw ( "Empty array name", kXMPErr_BadXPath );
549
550 XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
551 meta->SetArrayItem ( schemaNS, arrayName, itemIndex, itemValue, options );
552
553 XMP_EXIT_WRAPPER
554}
555
556// -------------------------------------------------------------------------------------------------
557

Callers

nothing calls this directly

Calls 1

SetArrayItemMethod · 0.80

Tested by

no test coverage detected