Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / SALOMELocalTrace / LocalTraceCollector.hxx
index 90101efd3df0fa3366be5d016ae55f81c231e547..cc9681f8a1fcdd06c102bb4a76d62571aee8b619 100644 (file)
@@ -15,7 +15,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 #ifndef _LOCALTRACECOLLECTOR_HXX_
 #define _LOCALTRACECOLLECTOR_HXX_
 
+#include "SALOME_LocalTrace.hxx"
+
 #include <string>
-#include <CORBA.h>
 #include "LocalTraceBufferPool.hxx"
+#include "BaseTraceCollector.hxx"
+
+//! See also other derived Classes in SALOMELocalTrace for usage without CORBA,
+//! see also derived Classes in SALOMETraceCollector for usage with CORBA.
 
-class LocalTraceCollector
+class SALOMELOCALTRACE_EXPORT LocalTraceCollector : public BaseTraceCollector
 {
  public:
-  static LocalTraceCollector* instance(CORBA::ORB_ptr theOrb, int typeTrace=0);
+  static BaseTraceCollector* instance();
   static void *run(void *bid);
   ~LocalTraceCollector();
 
  protected:
   LocalTraceCollector();
-
- private:
-  static int _threadToClose;
-  static int _toFile;
-  static LocalTraceCollector* _singleton;
-  static pthread_mutex_t _singletonMutex;
-  static pthread_t _threadId;
-  static std::string _fileName;
-  static CORBA::ORB_ptr _orb;
 };
 
 #endif