]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marTypes.h
avoid warnings / fix typo / reindent
[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: 2010/04/20 14:42:44 $
7   Version:   $Revision: 1.8 $
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 //JHCL - Start
34 //If we're using windows
35 /*
36 #if defined(WIN32)
37         //If we're using a dynamic library
38         #ifdef creaMaracasVisu_BUILD_SHARED
39                 #define MARACASVISULIB_EXPORTS __declspec( dllexport )
40         #else
41                 #define MARACASVISULIB_EXPORTS __declspec( dllimport )
42         #endif //maracasvisulib_EXPORTS
43 #else
44         #define MARACASVISULIB_EXPORTS 
45 #endif
46         */
47 // LG 15/01/09 : Now use crea mechanism
48 #include "creaMaracasVisu_EXPORT.h"
49 //JHCL - End
50
51
52 /*
53 #if defined(WIN32) //&& defined(MARACAS_BUILD_SHARED_LIBS)
54 # ifdef MaracasKernel_EXPORTS
55 #   define MAR_KERNEL_EXPORT __declspec( dllexport )
56 # else
57 #   define MAR_KERNEL_EXPORT //__declspec( dllimport )
58 # endif //MaracasKernel_EXPORTS
59
60 # ifdef MaracasInterfaceWX_EXPORTS
61 #   define MAR_INTERFACEWX_EXPORT __declspec( dllexport )
62 # else
63 #   define MAR_INTERFACEWX_EXPORT //__declspec( dllimport )
64 # endif //MaracasInterfaceWX_EXPORTS
65
66 #else
67
68 # define MAR_KERNEL_EXPORT
69 # define MAR_INTERFACEWX_EXPORT
70
71 #endif //WIN32
72 */
73
74 // Other ridiculous constants and typedefs. Just for fun!
75 #define MAR_DEFAULT_FILE_PARAMETERS      "params.dat"
76 #define MAR_DEFAULT_FILE_DICTIONARY      "marDict.txt"
77 #define MAR_DEFAULT_FILE_EXT_EXPERIMENT  ".exp"
78
79
80 /*! \file kgfo_typ.hxx
81  *  \brief General constants, types, enums, structs.
82  *
83  *  This file is included by all project files.
84  */
85
86 #include <creaSystem.h>
87
88 // This redefinitions shoul be useless using uint8_t, etc  // JPR
89
90 typedef unsigned char  uchar;  /*!< unsigned char redefintion. */
91 typedef unsigned int   uint;   /*!< unsigned int redefintion. */
92 typedef unsigned long  ulong;  /*!< unsigned long redefintion. */
93 typedef unsigned short ushort; /*!< unsigned short redefintion. */
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