~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/io/Terminal.hh

  • Committer: logg
  • Date: 2002-09-13 12:55:37 UTC
  • Revision ID: devnull@localhost-20020913125537-gz6ry1id9xsvu6np
Tailorized "2002-09-13 07:55:37 by logg"
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2002 Johan Hoffman and Anders Logg.
 
2
// Licensed under the GNU GPL Version 2.
 
3
 
 
4
#ifndef __TERMINAL_HH
 
5
#define __TERMINAL_HH
 
6
 
 
7
#include "Display.hh"
 
8
 
 
9
class Terminal : public Display {
 
10
 
 
11
public:
 
12
 
 
13
  Terminal(int debug_level) : Display(debug_level) {};
 
14
  
 
15
  ~Terminal() {};
 
16
  
 
17
  /// Display current status
 
18
  void Status(int level, const char *format, ...);
 
19
 
 
20
  /// Display a message: should work like printf
 
21
  void Message(int level, const char *format, ...);
 
22
  
 
23
  /// Display progress
 
24
  void Progress(int level, double progress, const char *format, ...);
 
25
 
 
26
  /// Display regress (progress backwards)
 
27
  void Regress(int level, double progress, double maximum, const char *format, ...);
 
28
  
 
29
  /// Display a value
 
30
  void Value(const char *name, Type type, ...);
 
31
  
 
32
  /// Display a warning
 
33
  void Warning(const char *format, ...);
 
34
  
 
35
  /// Display an error message
 
36
  void Error(const char *format, ...);
 
37
  
 
38
  /// Display an "internal error" message
 
39
  void InternalError(const char *function, const char *format, ...);
 
40
         
 
41
private:
 
42
 
 
43
  
 
44
};
 
45
 
 
46
#endif