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
|
// =================================================================================================
// Copyright Adobe
// Copyright 2015 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. If you have received this file from a source other
// than Adobe, then your use, modification, or distribution of it requires the prior written permission
// of Adobe.
// =================================================================================================
#include "XMPCore/Interfaces/IClientDOMParser.h"
#include "XMPCore/Interfaces/INode.h"
#if 1//!BUILDING_XMPCORE_LIB
namespace AdobeXMPCore {
pINode_base APICALL IClientDOMParser_v1::parse( const char * buffer, sizet bufferLength, pcIConfigurable configurationParameters, ReportErrorAndContinueABISafeProc proc, pcIError_base & error, uint32 & unknownExceptionCaught ) __NOTHROW__ {
unknownExceptionCaught = 0;
error = NULL;
try {
auto node = Parse( buffer, bufferLength, configurationParameters, proc );
if ( node ) {
node->Acquire();
return node->GetActualINode();
}
return NULL;
} catch ( spcIError err ) {
error = err->GetActualIError();
error->Acquire();
} catch ( ... ) {
unknownExceptionCaught = 1;
}
return NULL;
}
uint32 APICALL IClientDOMParser_v1::areKeysCaseSensitive( pcIError_base & error, uint32 & unknownExceptionCaught ) const __NOTHROW__ {
unknownExceptionCaught = 0;
error = NULL;
try {
return AreKeysCaseSensitive() ? 1 : 0;
} catch ( spcIError err ) {
error = err->GetActualIError();
error->Acquire();
} catch ( ... ) {
unknownExceptionCaught = 1;
}
return 0;
}
void APICALL IClientDOMParser_v1::initialize( pIConfigurable configurationParameters, pcIError_base & error, uint32 & unknownExceptionCaught ) __NOTHROW__ {
unknownExceptionCaught = 0;
error = NULL;
try {
Initialize( configurationParameters );
} catch ( spcIError err ) {
error = err->GetActualIError();
error->Acquire();
} catch ( ... ) {
unknownExceptionCaught = 1;
}
}
uint32 APICALL IClientDOMParser_v1::validate( const uint64 & key, uint32 dataType, const IConfigurable::CombinedDataValue & dataValue, pcIError_base & error, uint32 & unknownExceptionCaught ) __NOTHROW__ {
unknownExceptionCaught = 0;
error = NULL;
try {
return static_cast< uint32 >( Validate( key, static_cast< IConfigurable::eDataType >( dataType ), dataValue ) );
} catch ( spcIError err ) {
error = err->GetActualIError();
error->Acquire();
} catch ( ... ) {
unknownExceptionCaught = 1;
}
return 0;
}
}
#endif // !BUILDING_XMPCORE_LIB
|