Debian Codegraph @

core/libs/dngwriter/extra/xmp_sdk/XMPCommon/XMPCommonFwdDeclarations_I.h

raw
1 #ifndef __XMPCommonFwdDeclarations_I_h__
2 #define __XMPCommonFwdDeclarations_I_h__ 1
3
4 // =================================================================================================
5 // Copyright Adobe
6 // Copyright 2014 Adobe
7 // All Rights Reserved
8 //
9 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
10 // of the Adobe license agreement accompanying it. If you have received this file from a source other
11 // than Adobe, then your use, modification, or distribution of it requires the prior written permission
12 // of Adobe.
13 // =================================================================================================
14
15 #include "XMPCommon/XMPCommonDefines_I.h"
16 #include "XMPCommon/XMPCommonFwdDeclarations.h"
17
18 namespace XMP_COMPONENT_INT_NAMESPACE {
19 using namespace AdobeXMPCommon;
20
21 #if SUPPORT_SHARED_POINTERS_IN_STD
22 using std::weak_ptr;
23 using std::dynamic_pointer_cast;
24 using std::static_pointer_cast;
25 using std::const_pointer_cast;
26 using std::bad_weak_ptr;
27 using std::default_delete;
28 #elif SUPPORT_SHARED_POINTERS_IN_TR1
29 using std::tr1::weak_ptr;
30 using std::tr1::dynamic_pointer_cast;
31 using std::tr1::static_pointer_cast;
32 using std::tr1::const_pointer_cast;
33 using std::tr1::bad_weak_ptr;
34 template< typename Ty>
35 struct default_delete {
36 void operator()( Ty * ptr ) const __NOTHROW__{
37 delete ptr;
38 }
39 };
40 #endif
41
42 // IUTF8String_I
43 class IUTF8String_I;
44 typedef IUTF8String_I * pIUTF8String_I;
45 typedef const IUTF8String_I * pcIUTF8String_I;
46 typedef shared_ptr< IUTF8String_I > spIUTF8String_I;
47 typedef shared_ptr< const IUTF8String_I > spcIUTF8String_I;
48
49 // IError_I
50 class IError_I;
51 typedef IError_I * pIError_I;
52 typedef const IError_I * pcIError_I;
53 typedef shared_ptr< IError_I > spIError_I;
54 typedef shared_ptr< const IError_I > spcIError_I;
55
56 // IErrorNotifier_I
57 class IErrorNotifier_I;
58 typedef IErrorNotifier_I * pIErrorNotifier_I;
59 typedef const IErrorNotifier_I * pcIErrorNotifier_I;
60 typedef shared_ptr< IErrorNotifier_I > spIErrorNotifier_I;
61 typedef shared_ptr< const IErrorNotifier_I > spcIErrorNotifier_I;
62
63 // IMemoryAllocator_I
64 class IMemoryAllocator_I;
65 typedef IMemoryAllocator_I * pIMemoryAllocator_I;
66 typedef const IMemoryAllocator_I * pcIMemoryAllocator_I;
67 typedef shared_ptr< IMemoryAllocator_I > spIMemoryAllocator_I;
68 typedef shared_ptr< const IMemoryAllocator_I > spcIClientAllocator_I;
69
70 // IConfigurationManager_I
71 class IConfigurationManager_I;
72 typedef IConfigurationManager_I * pIConfigurationManager_I;
73 typedef const IConfigurationManager_I * pcIConfigurationManager_I;
74 typedef shared_ptr< IConfigurationManager_I > spIConfigurationManager_I;
75 typedef shared_ptr< const IConfigurationManager_I > spcIConfigurationManager_I;
76
77 // IConfigurable_I
78 class IConfigurable_I;
79 typedef IConfigurable_I * pIConfigurable_I;
80 typedef const IConfigurable_I * pcIConfigurable_I;
81 typedef shared_ptr< IConfigurable_I > spIConfigurable_I;
82 typedef shared_ptr< const IConfigurable_I > spcIConfigurable_I;
83
84 // ISharedMutex
85 class ISharedMutex;
86 typedef ISharedMutex * pISharedMutex;
87 typedef const ISharedMutex * pcISharedMutex;
88 typedef shared_ptr< ISharedMutex > spISharedMutex;
89 typedef shared_ptr< const ISharedMutex > spcISharedMutex;
90
91 };
92
93 #endif // __XMPCommonFwdDeclarations_I_h__