]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marTypes.h
baf1041a799e51354e5c889394a17ce8e5497b47
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marTypes.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: marTypes.h,v $
5   Language:  C++
6   Date:      $Date: 2009/05/14 13:54:43 $
7   Version:   $Revision: 1.7 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notice for more information.
15
16 =========================================================================*/
17
18 #ifndef __MAR__KERNEL__TYPES__HXX__
19 #define __MAR__KERNEL__TYPES__HXX__
20
21 /*! /def MAR_KERNEL_EXPORT
22  *  \brief Library export type.
23  *
24  *  Use this constant to define your class, function or variable link type.
25  *  Ex.: class MAR_KERNEL_EXPORT myClass { ... };
26  *  This is defined by means of other constants:
27  *       - MAR_KERNEL_MAKING_DLL (compilation of a dll).
28  *       - MAR_KERNEL_USING_DLL  (linking, ie, using the dll).
29  *  Note that if you want to build a static library, you should forget all
30  *  this fairy tale :-).
31  */
32
33
34 //JHCL - Start
35 //If we're using windows
36 /*
37 #if defined(WIN32)
38         //If we're using a dynamic library
39         #ifdef creaMaracasVisu_BUILD_SHARED
40                 #define MARACASVISULIB_EXPORTS __declspec( dllexport )
41         #else
42                 #define MARACASVISULIB_EXPORTS __declspec( dllimport )
43         #endif //maracasvisulib_EXPORTS
44 #else
45         #define MARACASVISULIB_EXPORTS 
46 #endif
47         */
48 // LG 15/01/09 : Now use crea mechanism
49 #include "creaMaracasVisu_EXPORT.h"
50 //JHCL - End
51
52
53 /*
54 #if defined(WIN32) //&& defined(MARACAS_BUILD_SHARED_LIBS)
55 # ifdef MaracasKernel_EXPORTS
56 #   define MAR_KERNEL_EXPORT __declspec( dllexport )
57 # else
58 #   define MAR_KERNEL_EXPORT //__declspec( dllimport )
59 # endif //MaracasKernel_EXPORTS
60
61 # ifdef MaracasInterfaceWX_EXPORTS
62 #   define MAR_INTERFACEWX_EXPORT __declspec( dllexport )
63 # else
64 #   define MAR_INTERFACEWX_EXPORT //__declspec( dllimport )
65 # endif //MaracasInterfaceWX_EXPORTS
66
67 #else
68
69 # define MAR_KERNEL_EXPORT
70 # define MAR_INTERFACEWX_EXPORT
71
72 #endif //WIN32
73 */
74
75 // Other ridiculous constants and typedefs. Just for fun!
76 #define MAR_DEFAULT_FILE_PARAMETERS      "params.dat"
77 #define MAR_DEFAULT_FILE_DICTIONARY      "marDict.txt"
78 #define MAR_DEFAULT_FILE_EXT_EXPERIMENT  ".exp"
79
80
81 /*! \file kgfo_typ.hxx
82  *  \brief General constants, types, enums, structs.
83  *
84  *  This file is included by all project files.
85  */
86 typedef unsigned char  uchar;  /*!< unsigned char redefintion. */
87 typedef unsigned int   uint;   /*!< unsigned int redefintion. */
88 typedef unsigned long  ulong;  /*!< unsigned long redefintion. */
89 typedef unsigned short ushort; /*!< unsigned short redefintion. */
90
91 // Is this compilation using LibIDO?
92
93 //#define KGFO_USE_IDO  // JPRx : Do NOT use LibIDO
94
95 // Is this compilation using VTK?
96 #define KGFO_USE_VTK
97
98 #ifdef _MSC_VER
99 #pragma warning ( disable : 4018 )
100 // 'this' : used in base member initializer list ... so what !
101 #pragma warning ( disable : 4355 )
102 #endif //_MSC_VER
103
104 #endif // __MAR__KERNEL__TYPES__HXX__
105
106 // eof - marTypes.h