Nebula
Toggle main menu visibility
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
//------------------------------------------------------------------------------
19
namespace
IO
20
{
21
class
LogFileConsoleHandler
:
public
ConsoleHandler
22
{
23
__DeclareClass
(
LogFileConsoleHandler
);
24
public
:
26
LogFileConsoleHandler
();
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
44
private
:
45
Ptr<Stream>
stream
;
46
Ptr<TextWriter>
textWriter
;
47
};
48
49
}
// namespace IO
50
//------------------------------------------------------------------------------
IO::ConsoleHandler::ConsoleHandler
ConsoleHandler()
constructor
Definition
consolehandler.cc:18
IO::LogFileConsoleHandler::Print
virtual void Print(const Util::String &s)
called by console to output data
Definition
logfileconsolehandler.cc:84
IO::LogFileConsoleHandler::Warning
virtual void Warning(const Util::String &s)
called by console to output warning
Definition
logfileconsolehandler.cc:111
IO::LogFileConsoleHandler::Open
virtual void Open()
called by console when attached
Definition
logfileconsolehandler.cc:42
IO::LogFileConsoleHandler::LogFileConsoleHandler
LogFileConsoleHandler()
constructor
Definition
logfileconsolehandler.cc:22
IO::LogFileConsoleHandler::~LogFileConsoleHandler
virtual ~LogFileConsoleHandler()
destructor
Definition
logfileconsolehandler.cc:30
IO::LogFileConsoleHandler::Close
virtual void Close()
called by console when removed
Definition
logfileconsolehandler.cc:66
IO::LogFileConsoleHandler::DebugOut
virtual void DebugOut(const Util::String &s)
called by console to output debug string
Definition
logfileconsolehandler.cc:125
IO::LogFileConsoleHandler::__DeclareClass
__DeclareClass(LogFileConsoleHandler)
IO::LogFileConsoleHandler::textWriter
Ptr< TextWriter > textWriter
Definition
logfileconsolehandler.h:46
IO::LogFileConsoleHandler::Error
virtual void Error(const Util::String &s)
called by console with serious error
Definition
logfileconsolehandler.cc:96
IO::LogFileConsoleHandler::stream
Ptr< Stream > stream
Definition
logfileconsolehandler.h:45
Ptr
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition
ptr.h:38
consolehandler.h
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
stream.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
textwriter.h
code
foundation
io
logfileconsolehandler.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.