Nebula
Loading...
Searching...
No Matches
logfileconsolehandler.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
14#include "io/consolehandler.h"
15#include "io/stream.h"
16#include "io/textwriter.h"
17
18//------------------------------------------------------------------------------
19namespace IO
20{
22{
24public:
28 virtual ~LogFileConsoleHandler();
29
31 virtual void Open();
33 virtual void Close();
34
36 virtual void Print(const Util::String& s);
38 virtual void Error(const Util::String& s);
40 virtual void Warning(const Util::String& s);
42 virtual void DebugOut(const Util::String& s);
43
44private:
47};
48
49} // namespace IO
50//------------------------------------------------------------------------------
Base class for all console handlers.
Definition consolehandler.h:22
A console handler which writes all console output to a log file.
Definition logfileconsolehandler.h:22
virtual void Print(const Util::String &s)
called by console to output data
Definition logfileconsolehandler.cc:84
virtual void Warning(const Util::String &s)
called by console to output warning
Definition logfileconsolehandler.cc:111
virtual void Open()
called by console when attached
Definition logfileconsolehandler.cc:42
LogFileConsoleHandler()
constructor
Definition logfileconsolehandler.cc:22
virtual ~LogFileConsoleHandler()
destructor
Definition logfileconsolehandler.cc:30
virtual void Close()
called by console when removed
Definition logfileconsolehandler.cc:66
virtual void DebugOut(const Util::String &s)
called by console to output debug string
Definition logfileconsolehandler.cc:125
__DeclareClass(LogFileConsoleHandler)
Ptr< TextWriter > textWriter
Definition logfileconsolehandler.h:46
virtual void Error(const Util::String &s)
called by console with serious error
Definition logfileconsolehandler.cc:96
Ptr< Stream > stream
Definition logfileconsolehandler.h:45
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Instances of wrapped stream classes.
Definition orientation.cc:10
Nebula's universal string class.
Definition string.h:50