1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
// =================================================================================================
// Copyright Adobe
// Copyright 2010 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.
// =================================================================================================
#include "public/include/XMP_Environment.h" // ! XMP_Environment.h must be the first included header.
#include "public/include/XMP_Const.h"
#include "XMPFiles/source/FormatSupport/AIFF/AIFFMetadata.h"
using namespace IFF_RIFF;
//-----------------------------------------------------------------------------
//
// AIFFMetadata::AIFFMetadata(...)
//
// Purpose: ctor/dtor
//
//-----------------------------------------------------------------------------
AIFFMetadata::AIFFMetadata()
{
}
AIFFMetadata::~AIFFMetadata()
{
}
//-----------------------------------------------------------------------------
//
// AIFFMetadata::isEmptyValue(...)
//
// Purpose: Is the value of the passed ValueObject and its id "empty"?
//
//-----------------------------------------------------------------------------
bool AIFFMetadata::isEmptyValue( XMP_Uns32 /*id*/, ValueObject& valueObj )
{
TValueObject<std::string>* strObj = dynamic_cast<TValueObject<std::string>*>(&valueObj);
return ( strObj == NULL || ( strObj != NULL && strObj->getValue().empty() ) );
}
|