~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/Logger.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: Logger.h,v 1.1 2000/12/20 23:21:32 zeller Exp $ -*- C++ -*-
 
1
// $Id$ -*- C++ -*-
2
2
// Log method entries and exits
3
3
 
4
4
// Copyright (C) 2000 Universitaet Passau, Germany.
29
29
#ifndef _DDD_Logger_h
30
30
#define _DDD_Logger_h
31
31
 
32
 
#ifdef __GNUG__
33
 
#pragma interface
34
 
#endif
35
 
 
36
 
#include <iostream.h>
 
32
#include <iostream>
37
33
#include "strclass.h"
38
34
 
39
35
#if HAVE_CONFIG_H
49
45
    _Logger(const string& function, const string& args)
50
46
        : _function(function), _args(args)
51
47
    {
52
 
        clog << ++depth
 
48
        std::clog << ++depth
53
49
             << " " << _function 
54
50
             << "(" << _args << ")"
55
51
             << "...\n";
56
52
    }
57
53
    ~_Logger()
58
54
    {
59
 
        clog << depth--
 
55
        std::clog << depth--
60
56
             << " " << _function 
61
57
             << "(" << _args << ")"
62
58
             << "...done.\n";