DataDirector API
DDD_Include.h
Go to the documentation of this file.
1 /*! \file DDD_Include.h
2 
3  \par Copyright Information
4 
5  Copyright (c) 2012 The DiSTI Corporation.<br>
6  11301 Corporate Blvd; Suite 100<br>
7  Orlando, Florida 32817<br>
8  USA<br>
9  <br>
10  All rights reserved.<br>
11 
12  This Software contains proprietary trade secrets of DiSTI and may not be
13 reproduced, in whole or part, in any form, or by any means of electronic,
14 mechanical, or otherwise, without the written permission of DiSTI. Said
15 permission may be derived through the purchase of applicable DiSTI product
16 licenses which detail the distribution rights of this content and any
17 Derivative Works based on this or other copyrighted DiSTI Software.
18 
19  NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
20 AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
21 PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
22 AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
23 IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
24 PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
25 
26  LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
27 IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
28 INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
29 DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
30 INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
31 INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
32 OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
33 EXCEED FIVE DOLLARS (US$5.00).
34 
35  The aforementioned terms and restrictions are governed by the laws of the
36 State of Florida and the United States of America.
37 
38 */
39 
40 
41 #ifndef DDD_INCLUDE_H
42 #define DDD_INCLUDE_H
43 
44 /** \def DDD_EXPORT Macro for exporting or importing from a DLL. */
45 #if defined(_MSC_VER) && (defined(DDD_DLL) || defined(DDD_EXPORT_LIBRARY) || defined(DDD_IMPORT_LIBRARY))
46 # if defined(DDD_LIBRARY) || defined(DDD_EXPORT_LIBRARY)
47 # define DDD_EXPORT __declspec(dllexport)
48 # else /* DDD_DLL || DDD_IMPORT_LIBRARY */
49 # define DDD_EXPORT __declspec(dllimport)
50 # endif /* DDD_LIBRARY */
51 #else
52 # define DDD_EXPORT
53 #endif /* DDD_DLL && _MSC_VER */
54 
55 
56 /** \def DDD_EXPORT_EXTERN_C Macro to declare "C-style" functions to prevent C++ name-mangling. */
57 #ifdef WIN32
58 #define DDD_EXPORT_EXTERN_C extern "C" __declspec(dllexport)
59 #else
60 #define DDD_EXPORT_EXTERN_C extern "C"
61 #endif
62 
63 /** \def DDD_ASSET_EXTENSION Filename extension for DataDirector asset plugins. */
64 /** \def DDD_CONVERTER_EXTENSION Filename extension for DataDirector converter plugins. */
65 
66 #ifdef LINUX
67 # define DDD_ASSET_EXTENSION "ast_Linux_gcc" // Linux assets
68 # define DDD_CONVERTER_EXTENSION "cvt_Linux_gcc" // Linux converters
69 #else
70 # define DDD_ASSET_EXTENSION "ast" // Win32 assets
71 # define DDD_CONVERTER_EXTENSION "cvt" // Win32 converters
72 #endif
73 
74 #if defined( _MSC_VER ) // Windows
75 # if _MSC_VER < 1310
76 # pragma message("Warning (DDD_Include.h): Unrecognized compiler version")
77 # define DDD_COMPILER_VERSION "vcXX"
78 # elif _MSC_VER < 1400
79 # define DDD_COMPILER_VERSION "vc71"
80 # elif _MSC_VER < 1500
81 # define DDD_COMPILER_VERSION "vc80"
82 # elif _MSC_VER < 1600
83 # define DDD_COMPILER_VERSION "vc90"
84 # elif _MSC_VER == 1600
85 # define DDD_COMPILER_VERSION "vc100"
86 # elif _MSC_VER == 1700
87 # define DDD_COMPILER_VERSION "vc110"
88 # elif _MSC_VER == 1800
89 # define DDD_COMPILER_VERSION "vc120"
90 # else
91 # pragma message("Warning (DDD_Include.h): Unrecognized compiler version")
92 # define DDD_COMPILER_VERSION "vcXX"
93 # endif
94 #elif defined(__GNUC__)
95 # if __GNUC__ == 3 && __GNUC_MINOR__ < 4
96 # define DDD_COMPILER_VERSION "322"
97 # elif __GNUC__ == 3 && __GNUC_MINOR__ == 4
98 # define DDD_COMPILER_VERSION "342"
99 # elif __GNUC__ == 4 && __GNUC_MINOR__ < 2
100 # define DDD_COMPILER_VERSION "400"
101 # elif __GNUC__ == 4 && __GNUC_MINOR__ < 4
102 # define DDD_COMPILER_VERSION "420"
103 # elif __GNUC__ == 4 && __GNUC_MINOR__ < 6
104 # define DDD_COMPILER_VERSION "440"
105 # elif __GNUC__ == 4 && __GNUC_MINOR__ < 8
106 # define DDD_COMPILER_VERSION "460"
107 # elif __GNUC__ == 4 && __GNUC_MINOR__ == 8
108 # define DDD_COMPILER_VERSION "480"
109 # else
110 # define DDD_COMPILER_VERSION "Unsupported"
111 # endif
112 #endif
113 
114 
115 #ifdef DDD_DEBUG
116 # define DDD_DEBUG_EXTENSION "d"
117 #else
118 # define DDD_DEBUG_EXTENSION ""
119 #endif
120 
121 
122 /** Data Director Design file extension (any platform). */
123 #define DDD_FILE_EXTENSION "ddd"
124 
125 #endif
126