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

Function IsInternalProperty

xmpsdk/src/XMPUtils-FileInfo.cpp:438–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436#define IsExternalProperty(s,p) (! IsInternalProperty ( s, p ))
437
438static bool
439IsInternalProperty ( const XMP_VarString & schema, const XMP_VarString & prop )
440{
441 bool isInternal = false;
442
443 if ( schema == kXMP_NS_DC ) {
444
445 if ( (prop == "dc:format") ||
446 (prop == "dc:language") ) {
447 isInternal = true;
448 }
449
450 } else if ( schema == kXMP_NS_XMP ) {
451
452 if ( (prop == "xmp:BaseURL") ||
453 (prop == "xmp:CreatorTool") ||
454 (prop == "xmp:Format") ||
455 (prop == "xmp:Locale") ||
456 (prop == "xmp:MetadataDate") ||
457 (prop == "xmp:ModifyDate") ) {
458 isInternal = true;
459 }
460
461 } else if ( schema == kXMP_NS_PDF ) {
462
463 if ( (prop == "pdf:BaseURL") ||
464 (prop == "pdf:Creator") ||
465 (prop == "pdf:ModDate") ||
466 (prop == "pdf:PDFVersion") ||
467 (prop == "pdf:Producer") ) {
468 isInternal = true;
469 }
470
471 } else if ( schema == kXMP_NS_TIFF ) {
472
473 isInternal = true; // ! The TIFF properties are internal by default.
474 if ( (prop == "tiff:ImageDescription") || // ! ImageDescription, Artist, and Copyright are aliased.
475 (prop == "tiff:Artist") ||
476 (prop == "tiff:Copyright") ) {
477 isInternal = false;
478 }
479
480 } else if ( schema == kXMP_NS_EXIF ) {
481
482 isInternal = true; // ! The EXIF properties are internal by default.
483 if ( prop == "exif:UserComment" ) isInternal = false;
484
485 } else if ( schema == kXMP_NS_EXIF_Aux ) {
486
487 isInternal = true; // ! The EXIF Aux properties are internal by default.
488
489 } else if ( schema == kXMP_NS_Photoshop ) {
490
491 if ( prop == "photoshop:ICCProfile" ) isInternal = true;
492
493 } else if ( schema == kXMP_NS_CameraRaw ) {
494
495 if ( (prop == "crs:Version") ||

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected