summaryrefslogtreecommitdiff
path: root/samples/source/XMPCoreCoverage.cpp
diff options
context:
space:
mode:
authorHubert Figuiere <hub@figuiere.net>2008-11-17 23:42:00 -0500
committerHubert Figuiere <hub@figuiere.net>2008-11-17 23:42:00 -0500
commit88af812fde414aca8f9add90bc800ea3d8e9a281 (patch)
tree0403dd1897c0b287d4d710dd422827683c59dfcb /samples/source/XMPCoreCoverage.cpp
parent9d7d7c3caac05db240692ad7e9196fcb7f5a1ce5 (diff)
upgrade to XMP-SDK 4.4.2
Diffstat (limited to 'samples/source/XMPCoreCoverage.cpp')
-rw-r--r--samples/source/XMPCoreCoverage.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/samples/source/XMPCoreCoverage.cpp b/samples/source/XMPCoreCoverage.cpp
index feb6306..c0c2cef 100644
--- a/samples/source/XMPCoreCoverage.cpp
+++ b/samples/source/XMPCoreCoverage.cpp
@@ -1,3 +1,15 @@
+// =================================================================================================
+// Copyright 2002-2008 Adobe Systems Incorporated
+// 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.
+// =================================================================================================
+
+/**
+* Demonstrates syntax and usage by exercising most of the API functions of XMPCore Toolkit SDK component,
+* using a sample XMP Packet that contains all of the different property and attribute types.
+*/
#include <string>
#include <iostream>
#include <iomanip>
@@ -18,6 +30,7 @@ using namespace std;
#if WIN_ENV
#pragma warning ( disable : 4100 ) // ignore unused variable
#pragma warning ( disable : 4127 ) // conditional expression is constant
+ #pragma warning ( disable : 4267 ) // possible loss of data (temporary for 64-bit builds)
#pragma warning ( disable : 4505 ) // unreferenced local function has been removed
#pragma warning ( disable : 4996 ) // '...' was declared deprecated
#endif
@@ -1927,6 +1940,8 @@ extern "C" int main ( int /*argc*/, const char * argv [] )
try {
+// *** Add memory leak checking for both DLL and static builds ***
+
if ( ! SXMPMeta::Initialize() ) {
fprintf ( log, "## XMPMeta::Initialize failed!\n" );
return -1;
@@ -1946,10 +1961,14 @@ extern "C" int main ( int /*argc*/, const char * argv [] )
}
SXMPMeta::Terminate();
+
now = time(0);
fprintf ( log, "XMPCoreCoverage finished %s", ctime(&now) );
fprintf ( log, "Final status = %d\n", result );
fclose ( log );
+
+ printf( "results have been logged into %s\n", logName );
+
return result;
}