| 1 | #ifndef __XMP_incl_cpp__ |
| 2 | #define __XMP_incl_cpp__ 1 |
| 3 | |
| 4 | // ================================================================================================= |
| 5 | // ADOBE SYSTEMS INCORPORATED |
| 6 | // Copyright 2002-2007 Adobe Systems Incorporated |
| 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. |
| 11 | // ================================================================================================= |
| 12 | |
| 13 | // ================================================================================================ |
| 14 | /// \file XMP.incl_cpp |
| 15 | /// \brief Overall client glue file for the XMP toolkit. |
| 16 | /// |
| 17 | /// This is an overall client source file of XMP toolkit glue, the only XMP-specific one that |
| 18 | /// clients should build in projects. This ensures that all of the client-side glue code for the |
| 19 | /// XMP toolkit gets compiled. |
| 20 | /// |
| 21 | /// You cannot compile this file directly, because the template's string type must be declared and |
| 22 | /// only the client can do that. Instead, include this in some other source file. For example, |
| 23 | /// to use <tt>std::string</tt> you only need these two lines: |
| 24 | /// |
| 25 | /// \code |
| 26 | /// #include <string> |
| 27 | /// #include "XMP.incl_cpp" |
| 28 | /// \endcode |
| 29 | |
| 30 | |
| 31 | #include "XMPSDK.hpp" // ! This must be the first include! |
| 32 | |
| 33 | #define XMP_ClientBuild 1 |
| 34 | |
| 35 | #ifdef _MSC_VER |
| 36 | #if XMP_DebugBuild |
| 37 | #pragma warning ( push, 4 ) |
| 38 | #else |
| 39 | #pragma warning ( push, 3 ) |
| 40 | #endif |
| 41 | #pragma warning ( disable : 4189 ) // local variable is initialized but not referenced |
| 42 | #pragma warning ( disable : 4702 ) // unreachable code |
| 43 | #pragma warning ( disable : 4800 ) // forcing value to bool 'true' or 'false' (performance warning) |
| 44 | #endif |
| 45 | |
| 46 | #if defined ( TXMP_STRING_TYPE ) && (! TXMP_EXPAND_INLINE) |
| 47 | |
| 48 | // We're using a single out of line instantiation. Do it here. |
| 49 | |
| 50 | #include "client-glue/TXMPMeta.incl_cpp" |
| 51 | #include "client-glue/TXMPIterator.incl_cpp" |
| 52 | #include "client-glue/TXMPUtils.incl_cpp" |
| 53 | template class TXMPMeta <TXMP_STRING_TYPE>; |
| 54 | template class TXMPIterator <TXMP_STRING_TYPE>; |
| 55 | template class TXMPUtils <TXMP_STRING_TYPE>; |
| 56 | |
| 57 | #endif |
| 58 | |
| 59 | #ifdef _MSC_VER |
| 60 | #pragma warning ( pop ) |
| 61 | #endif |
| 62 | |
| 63 | #endif // __XMP_incl_cpp__ |