Inter4ql  5.2
Output.h
1 #ifndef __OUTPUT_H__
2 #define __OUTPUT_H__
3 
4 #include <string>
5 
6 namespace Inter4ql {
7 
8  class Exception;
9 
12  class Output {
13  public:
19  Output(std::ostream *o = 0, std::ostream *e = 0);
22  ~Output();
27  void print(Exception *s);
32  void print(std::string *s);
37  void print(std::string s);
42  void set_output(std::ostream *o);
47  void set_error(std::ostream *e);
48  private:
49  std::ostream *std_output;
50  std::ostream *err_output;
51  };
52 }
53 
54 #endif
Definition: Application.cc:37
void set_output(std::ostream *o)
setter for standard output
Definition: Output.cc:38
void print(Exception *s)
prints exception
Definition: Output.cc:25
void set_error(std::ostream *e)
setter for error output
Definition: Output.cc:42
Output(std::ostream *o=0, std::ostream *e=0)
constructor
Definition: Output.cc:10
~Output()
destructor
Definition: Output.cc:21
Output class handles standard output of interpreter.
Definition: Output.h:12
class that implements an exception
Definition: Exception.h:11