- /// Returns second_used_
- bool second_used() { return second_used_; }
- // Returns second stream
- std::ostream & second() { return *second_; };
- /// Sets the second stream
- void setSecond(std::ostream * os) { second_used_ = (second_ = os); }
+ /// Sets stream
+ void setStream(std::ostream & os) { stream_ = &os; }
+ /// Is the stream enabled ?
+ bool enabled() const { return enabled_; }
+
+ /// Returns second stream
+ std::ostream & secondStream() { return *second_stream_; };
+ /// Sets second stream
+ void setSecondStream(std::ostream * os)
+ { second_enabled_ = (second_stream_ = os); }
+ /// Is the second stream is enabled?
+ bool secondEnabled() { return second_enabled_; }
+
+ /// Sets the debug level
+ void setLevel(Debug::Type t) { dt_ = t; }
+ /// Returns the current debug level
+ Debug::Type level() const { return dt_; }
+ /// Returns true if t is part of the current debug level
+ bool debugging(Debug::Type t = Debug::ANY) const;