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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
#if ! __WXMPUtils_hpp__
#define __WXMPUtils_hpp__ 1
// =================================================================================================
// Copyright 2002 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.
// =================================================================================================
#include "client-glue/WXMP_Common.hpp"
#if __cplusplus
extern "C" {
#endif
// =================================================================================================
#define zXMPUtils_ComposeArrayItemPath_1(schemaNS,arrayName,itemIndex,itemPath,SetClientString) \
WXMPUtils_ComposeArrayItemPath_1 ( schemaNS, arrayName, itemIndex, itemPath, SetClientString, &wResult );
#define zXMPUtils_ComposeStructFieldPath_1(schemaNS,structName,fieldNS,fieldName,fieldPath,SetClientString) \
WXMPUtils_ComposeStructFieldPath_1 ( schemaNS, structName, fieldNS, fieldName, fieldPath, SetClientString, &wResult );
#define zXMPUtils_ComposeQualifierPath_1(schemaNS,propName,qualNS,qualName,qualPath,SetClientString) \
WXMPUtils_ComposeQualifierPath_1 ( schemaNS, propName, qualNS, qualName, qualPath, SetClientString, &wResult );
#define zXMPUtils_ComposeLangSelector_1(schemaNS,arrayName,langName,selPath,SetClientString) \
WXMPUtils_ComposeLangSelector_1 ( schemaNS, arrayName, langName, selPath, SetClientString, &wResult );
#define zXMPUtils_ComposeFieldSelector_1(schemaNS,arrayName,fieldNS,fieldName,fieldValue,selPath,SetClientString) \
WXMPUtils_ComposeFieldSelector_1 ( schemaNS, arrayName, fieldNS, fieldName, fieldValue, selPath, SetClientString, &wResult );
#define zXMPUtils_ConvertFromBool_1(binValue,strValue,SetClientString) \
WXMPUtils_ConvertFromBool_1 ( binValue, strValue, SetClientString, &wResult );
#define zXMPUtils_ConvertFromInt_1(binValue,format,strValue,SetClientString) \
WXMPUtils_ConvertFromInt_1 ( binValue, format, strValue, SetClientString, &wResult );
#define zXMPUtils_ConvertFromInt64_1(binValue,format,strValue,SetClientString) \
WXMPUtils_ConvertFromInt64_1 ( binValue, format, strValue, SetClientString, &wResult );
#define zXMPUtils_ConvertFromFloat_1(binValue,format,strValue,SetClientString) \
WXMPUtils_ConvertFromFloat_1 ( binValue, format, strValue, SetClientString, &wResult );
#define zXMPUtils_ConvertFromDate_1(binValue,strValue,SetClientString) \
WXMPUtils_ConvertFromDate_1 ( binValue, strValue, SetClientString, &wResult );
#define zXMPUtils_ConvertToBool_1(strValue) \
WXMPUtils_ConvertToBool_1 ( strValue, &wResult );
#define zXMPUtils_ConvertToInt_1(strValue) \
WXMPUtils_ConvertToInt_1 ( strValue, &wResult );
#define zXMPUtils_ConvertToInt64_1(strValue) \
WXMPUtils_ConvertToInt64_1 ( strValue, &wResult );
#define zXMPUtils_ConvertToFloat_1(strValue) \
WXMPUtils_ConvertToFloat_1 ( strValue, &wResult );
#define zXMPUtils_ConvertToDate_1(strValue,binValue) \
WXMPUtils_ConvertToDate_1 ( strValue, binValue, &wResult );
#define zXMPUtils_CurrentDateTime_1(time) \
WXMPUtils_CurrentDateTime_1 ( time, &wResult );
#define zXMPUtils_SetTimeZone_1(time) \
WXMPUtils_SetTimeZone_1 ( time, &wResult );
#define zXMPUtils_ConvertToUTCTime_1(time) \
WXMPUtils_ConvertToUTCTime_1 ( time, &wResult );
#define zXMPUtils_ConvertToLocalTime_1(time) \
WXMPUtils_ConvertToLocalTime_1 ( time, &wResult );
#define zXMPUtils_CompareDateTime_1(left,right) \
WXMPUtils_CompareDateTime_1 ( left, right, &wResult );
#define zXMPUtils_EncodeToBase64_1(rawStr,rawLen,encodedStr,SetClientString) \
WXMPUtils_EncodeToBase64_1 ( rawStr, rawLen, encodedStr, SetClientString, &wResult );
#define zXMPUtils_DecodeFromBase64_1(encodedStr,encodedLen,rawStr,SetClientString) \
WXMPUtils_DecodeFromBase64_1 ( encodedStr, encodedLen, rawStr, SetClientString, &wResult );
#define zXMPUtils_PackageForJPEG_1(xmpObj,stdStr,extStr,digestStr,SetClientString) \
WXMPUtils_PackageForJPEG_1 ( xmpObj, stdStr, extStr, digestStr, SetClientString, &wResult );
#define zXMPUtils_MergeFromJPEG_1(fullXMP,extendedXMP) \
WXMPUtils_MergeFromJPEG_1 ( fullXMP, extendedXMP, &wResult );
#define zXMPUtils_CatenateArrayItems_1(xmpObj,schemaNS,arrayName,separator,quotes,options,catedStr,SetClientString) \
WXMPUtils_CatenateArrayItems_1 ( xmpObj, schemaNS, arrayName, separator, quotes, options, catedStr, SetClientString, &wResult );
#define zXMPUtils_SeparateArrayItems_1(xmpObj,schemaNS,arrayName,options,catedStr) \
WXMPUtils_SeparateArrayItems_1 ( xmpObj, schemaNS, arrayName, options, catedStr, &wResult );
#define zXMPUtils_ApplyTemplate_1(workingXMP,templateXMP,actions) \
WXMPUtils_ApplyTemplate_1 ( workingXMP, templateXMP, actions, &wResult );
#define zXMPUtils_RemoveProperties_1(xmpObj,schemaNS,propName,options) \
WXMPUtils_RemoveProperties_1 ( xmpObj, schemaNS, propName, options, &wResult );
#define zXMPUtils_DuplicateSubtree_1(source,dest,sourceNS,sourceRoot,destNS,destRoot,options) \
WXMPUtils_DuplicateSubtree_1 ( source, dest, sourceNS, sourceRoot, destNS, destRoot, options, &wResult );
// =================================================================================================
extern void
XMP_PUBLIC WXMPUtils_ComposeArrayItemPath_1 ( XMP_StringPtr schemaNS,
XMP_StringPtr arrayName,
XMP_Index itemIndex,
void * itemPath,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ComposeStructFieldPath_1 ( XMP_StringPtr schemaNS,
XMP_StringPtr structName,
XMP_StringPtr fieldNS,
XMP_StringPtr fieldName,
void * fieldPath,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ComposeQualifierPath_1 ( XMP_StringPtr schemaNS,
XMP_StringPtr propName,
XMP_StringPtr qualNS,
XMP_StringPtr qualName,
void * qualPath,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ComposeLangSelector_1 ( XMP_StringPtr schemaNS,
XMP_StringPtr arrayName,
XMP_StringPtr langName,
void * selPath,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ComposeFieldSelector_1 ( XMP_StringPtr schemaNS,
XMP_StringPtr arrayName,
XMP_StringPtr fieldNS,
XMP_StringPtr fieldName,
XMP_StringPtr fieldValue,
void * selPath,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_ConvertFromBool_1 ( XMP_Bool binValue,
void * strValue,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertFromInt_1 ( XMP_Int32 binValue,
XMP_StringPtr format,
void * strValue,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertFromInt64_1 ( XMP_Int64 binValue,
XMP_StringPtr format,
void * strValue,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertFromFloat_1 ( double binValue,
XMP_StringPtr format,
void * strValue,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertFromDate_1 ( const XMP_DateTime & binValue,
void * strValue,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_ConvertToBool_1 ( XMP_StringPtr strValue,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToInt_1 ( XMP_StringPtr strValue,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToInt64_1 ( XMP_StringPtr strValue,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToFloat_1 ( XMP_StringPtr strValue,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToDate_1 ( XMP_StringPtr strValue,
XMP_DateTime * binValue,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_CurrentDateTime_1 ( XMP_DateTime * time,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_SetTimeZone_1 ( XMP_DateTime * time,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToUTCTime_1 ( XMP_DateTime * time,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ConvertToLocalTime_1 ( XMP_DateTime * time,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_CompareDateTime_1 ( const XMP_DateTime & left,
const XMP_DateTime & right,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_EncodeToBase64_1 ( XMP_StringPtr rawStr,
XMP_StringLen rawLen,
void * encodedStr,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_DecodeFromBase64_1 ( XMP_StringPtr encodedStr,
XMP_StringLen encodedLen,
void * rawStr,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_PackageForJPEG_1 ( XMPMetaRef xmpObj,
void * stdStr,
void * extStr,
void * digestStr,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_MergeFromJPEG_1 ( XMPMetaRef fullXMP,
XMPMetaRef extendedXMP,
WXMP_Result * wResult );
// -------------------------------------------------------------------------------------------------
extern void
XMP_PUBLIC WXMPUtils_CatenateArrayItems_1 ( XMPMetaRef xmpObj,
XMP_StringPtr schemaNS,
XMP_StringPtr arrayName,
XMP_StringPtr separator,
XMP_StringPtr quotes,
XMP_OptionBits options,
void * catedStr,
SetClientStringProc SetClientString,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_SeparateArrayItems_1 ( XMPMetaRef xmpObj,
XMP_StringPtr schemaNS,
XMP_StringPtr arrayName,
XMP_OptionBits options,
XMP_StringPtr catedStr,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_ApplyTemplate_1 ( XMPMetaRef workingXMP,
XMPMetaRef templateXMP,
XMP_OptionBits options,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_RemoveProperties_1 ( XMPMetaRef xmpObj,
XMP_StringPtr schemaNS,
XMP_StringPtr propName,
XMP_OptionBits options,
WXMP_Result * wResult );
extern void
XMP_PUBLIC WXMPUtils_DuplicateSubtree_1 ( XMPMetaRef source,
XMPMetaRef dest,
XMP_StringPtr sourceNS,
XMP_StringPtr sourceRoot,
XMP_StringPtr destNS,
XMP_StringPtr destRoot,
XMP_OptionBits options,
WXMP_Result * wResult );
// =================================================================================================
#if __cplusplus
} /* extern "C" */
#endif
#endif // __WXMPUtils_hpp__
|