wxArt2D
prflcnt.cpp
1 /*! \file general/src/prflcnt.cpp
2  \author Michael Sögtrop
3  \date Created 08/05/2004
4 
5  Copyright: 2004-2004 (c) Michael Sögtrop
6 
7  Licence: wxWidgets Licence
8 
9  RCS-ID: $Id: prflcnt.cpp,v 1.4 2005/08/12 21:21:48 titato Exp $
10 */
11 
12 ///////////////////////////////////////////////////////////////////////////////
13 //
14 // .h Includedateien
15 // In diesen Dateien darf kein Aufruf von new erfolgen
16 //
17 ///////////////////////////////////////////////////////////////////////////////
18 
19 #include "a2dprec.h"
20 
21 #ifdef __BORLANDC__
22 #pragma hdrstop
23 #endif
24 
25 #ifndef WX_PRECOMP
26 #include "wx/wx.h"
27 #endif
28 
29 #include "wx/genart/prfl.h"
30 
31 #include "wx/genart/prflcnt.h"
32 
33 ///////////////////////////////////////////////////////////////////////////////
34 //
35 // .inl Includedateien
36 // In diesen Dateien darf kein new Operator deklariert werden
37 //
38 ///////////////////////////////////////////////////////////////////////////////
39 
40 ///////////////////////////////////////////////////////////////////////////////
41 //
42 // Speicherschutz unter Debug fuer Implemenatation
43 //
44 ///////////////////////////////////////////////////////////////////////////////
45 
46 #ifdef _DEBUG
47 #undef THIS_FILE
48 static char THIS_FILE[] = __FILE__;
49 #endif
50 
51 //*****************************************************************************
52 //*
53 //* Klasse a2dProfilerCount: Erzeugungs und Vernichtungsoperatoren
54 //*
55 //*****************************************************************************
56 
57 ///////////////////////////////////////////////////////////////////////////////
58 //
59 // Standard-Erzeugungsoperator
60 //
61 ///////////////////////////////////////////////////////////////////////////////
62 
63 a2dProfilerCount::a2dProfilerCount( wxString idIn )
64  : a2dProfiler( idIn )
65 {
66  cnt = 0;
67 }
68 
69 ///////////////////////////////////////////////////////////////////////////////
70 //
71 // Vernichtungsoperator
72 //
73 ///////////////////////////////////////////////////////////////////////////////
74 
75 a2dProfilerCount::~a2dProfilerCount ()
76 {
77  OpenPrflFile();
78 
79  if( !prflFile.IsOpened() )
80  return;
81  wxString stro;
82  stro.Printf( wxT( "%-20s|%10.0lf|----------------|----------\n" ),
83  id.c_str(),
84  cnt
85  );
86  prflFile.Write( stro );
87 }
88 
static void OpenPrflFile()
opens the profiling data file, if not yet open.
Definition: prfl.cpp:99
profiling classes
profiling classes
prflcnt.cpp Source File -- Sun Oct 12 2014 17:04:23 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation