diff options
Diffstat (limited to 'XMPCore/ImplHeaders/DOMParserImpl.h')
-rw-r--r-- | XMPCore/ImplHeaders/DOMParserImpl.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/XMPCore/ImplHeaders/DOMParserImpl.h b/XMPCore/ImplHeaders/DOMParserImpl.h new file mode 100644 index 0000000..488170f --- /dev/null +++ b/XMPCore/ImplHeaders/DOMParserImpl.h @@ -0,0 +1,64 @@ +#ifndef DOMParserImpl_h__ +#define DOMParserImpl_h__ 1 + +// ================================================================================================= +// ADOBE SYSTEMS INCORPORATED +// Copyright 2015 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. +// ================================================================================================= + +#if !(IMPLEMENTATION_HEADERS_CAN_BE_INCLUDED) + #error "Not adhering to design constraints" + // this file should only be included from its own cpp file +#endif + +#include "XMPCore/Interfaces/IDOMParser_I.h" +#include "XMPCommon/BaseClasses/MemoryManagedObject.h" +#include "XMPCommon/ImplHeaders/SharedObjectImpl.h" +#include "XMPCommon/ImplHeaders/ConfigurableImpl.h" + +#if XMP_WinBuild + #pragma warning( push ) + #pragma warning( disable : 4250 ) +#endif + +namespace AdobeXMPCore_Int { + + class DOMParserImpl + : public virtual IDOMParser_I + , public virtual ConfigurableImpl + , public virtual SharedObjectImpl + , public virtual MemoryManagedObject + { + public: + DOMParserImpl(); + + virtual spIDOMParser APICALL Clone() const; + virtual spIMetadata APICALL Parse( const char * buffer, sizet bufferLength ); + virtual void APICALL ParseWithSpecificAction( const char * buffer, sizet bufferLength, eActionType actionType, spINode & node ); + virtual spISharedMutex APICALL GetMutex() const; + virtual void SetErrorCallback(XMPMeta::ErrorCallbackInfo * ec); + + protected: + virtual ~DOMParserImpl() __NOTHROW__ {} + virtual DOMParserImpl * APICALL clone() const = 0; + + spISharedMutex mSharedMutex; + XMPMeta::ErrorCallbackInfo * mGenericErrorCallbackPtr; + + #ifdef FRIEND_CLASS_DECLARATION + FRIEND_CLASS_DECLARATION(); + #endif + REQ_FRIEND_CLASS_DECLARATION(); + }; +} + +#if XMP_WinBuild + #pragma warning( pop ) +#endif + +#endif // DOMParserImpl_h__ + |