Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / Notification / NOTIFICATION.hxx
1 //  SALOME Notification : wrapping of Notification service services
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : NOTIFICATION.hxx
25 //  Author : Laurent DADA / Francis KLOSS
26 //  Module : SALOME
27
28 #ifndef NOTIFICATION_HXX
29 #define NOTIFICATION_HXX
30
31 #define NOTIF_WARNING "Warning"
32 #define NOTIF_STEP    "Step"
33 #define NOTIF_TRACE   "Trace"
34 #define NOTIF_VERBOSE "Verbose"
35
36 #define NOTIFICATION_ChannelName "EventChannel"
37
38 #include "utilities.h"
39
40 // kloss #include <omnithread.h>
41 #include "CosNotifyShorthands.h"
42
43 #include "NOTIFICATION_Supplier.hxx"
44 #include "NOTIFICATION_Consumer.hxx"
45
46
47 #if defined NOTIFICATION_EXPORTS
48 #if defined WIN32
49 #define NOTIFICATION_EXPORT __declspec( dllexport )
50 #else
51 #define NOTIFICATION_EXPORT
52 #endif
53 #else
54 #if defined WNT
55 #define NOTIFICATION_EXPORT __declspec( dllimport )
56 #else
57 #define NOTIFICATION_EXPORT
58 #endif
59 #endif
60
61 NOTIFICATION_EXPORT char* NOTIFICATION_date();
62 NOTIFICATION_EXPORT CosNA_EventChannel_ptr NOTIFICATION_channel();
63
64 #endif