#ifndef DEBUGSTREAM_H
#define DEBUGSTREAM_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LOstream.h"
#ifdef TEST_DEBUGSTREAM
#include <string>
+///
struct Debug {
///
enum type {
};
#endif
-/** DebugStream is a ostream intended for debug output. It has also support
- for a logfile. Debug output is output to cerr and if the logfile is set,
- to the logfile.
+/** DebugStream is a ostream intended for debug output.
+ It has also support for a logfile. Debug output is output to cerr
+ and if the logfile is set, to the logfile.
Example of Usage:
DebugStream debug;
// 1.0.x), which generates a compiler error when subclassing from
// std::. (JMarc)
#ifdef CXX_WORKING_NAMESPACES
-class DebugStream : public std::ostream {
+///
+class DebugStream : public std::ostream
#else
-class DebugStream : public ostream {
+///
+class DebugStream : public ostream
#endif
+{
public:
/// Constructor, sets the debug level to t.
explicit DebugStream(Debug::type t = Debug::NONE);
Debug::type dt;
/// The no-op stream.
std::ostream nullstream;
+ ///
struct debugstream_internal;
+ ///
debugstream_internal * internal;
};
#endif
+
+