SoPlex Doxygen Documentation
tracemethod.cpp
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the class library */
4 /* SoPlex --- the Sequential object-oriented simPlex. */
5 /* */
6 /* Copyright (C) 1996-2012 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SoPlex is distributed under the terms of the ZIB Academic Licence. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 #include "tracemethod.h"
17 #include "spxout.h"
18 
19 
20 namespace soplex
21 {
22 #if defined(TRACE_METHOD)
23 
24  int TraceMethod::s_indent = 0;
25 
26  /// constructor
27  TraceMethod::TraceMethod(const char* s, const char* file, int line )
28  {
29  int i;
30 
31  spxout << "\t";
32 
33  for(i = 0; i < s_indent; i++)
34  spxout << ".";
35 
36  spxout << s;
37 
38  for(i = strlen(s) + s_indent; i < FILE_NAME_COL - 8; i++)
39  spxout << "_";
40  spxout << "[" << file << ":" << line << "]" << std::endl;
41  s_indent++;
42  }
43 #endif //TRACE_METHOD
44 }