]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMETraceCollector/SALOMETraceCollector.hxx
Salome HOME
Ajout des properties
[modules/kernel.git] / src / SALOMETraceCollector / SALOMETraceCollector.hxx
1 //  Copyright (C) 2004  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 // 
4 //  This library is free software; you can redistribute it and/or 
5 //  modify it under the terms of the GNU Lesser General Public 
6 //  License as published by the Free Software Foundation; either 
7 //  version 2.1 of the License. 
8 // 
9 //  This library is distributed in the hope that it will be useful, 
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 //  Lesser General Public License for more details. 
13 // 
14 //  You should have received a copy of the GNU Lesser General Public 
15 //  License along with this library; if not, write to the Free Software 
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 // 
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //
21 //
22 //  File   : SALOMETraceCollector.hxx
23 //  Author : Paul RASCLE (EDF)
24 //  Module : KERNEL
25 //  $Header$
26
27 #ifndef _SALOMETRACECOLLECTOR_HXX_
28 #define _SALOMETRACECOLLECTOR_HXX_
29
30 #include <string>
31 #include <CORBA.h>
32 #include "BaseTraceCollector.hxx"
33 #include "LocalTraceBufferPool.hxx"
34
35 //! See LocalTraceCollector instead of SALOMETraceCollector,
36 //! for usage without CORBA
37
38 #if defined SALOMETRACECOLLECTOR_EXPORTS
39 #if defined WIN32
40 #define SALOMETRACECOLLECTOR_EXPORT __declspec( dllexport )
41 #else
42 #define SALOMETRACECOLLECTOR_EXPORT
43 #endif
44 #else
45 #if defined WNT
46 #define SALOMETRACECOLLECTOR_EXPORT __declspec( dllimport )
47 #else
48 #define SALOMETRACECOLLECTOR_EXPORT
49 #endif
50 #endif
51
52 class SALOMETRACECOLLECTOR_EXPORT SALOMETraceCollector:
53   public BaseTraceCollector
54 {
55  public:
56   static BaseTraceCollector* instance();
57   static void *run(void *bid);
58   ~SALOMETraceCollector();
59
60  protected:
61   SALOMETraceCollector();
62
63  private:
64   static CORBA::ORB_ptr _orb;
65 };
66
67 #endif