Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
textwriter.h
Go to the documentation of this file.
1
#pragma once
2
#ifndef IO_TEXTWRITER_H
3
#define IO_TEXTWRITER_H
4
//------------------------------------------------------------------------------
14
#include "
io/streamwriter.h
"
15
16
//------------------------------------------------------------------------------
17
namespace
IO
18
{
19
class
TextWriter
:
public
StreamWriter
20
{
21
__DeclareClass
(
TextWriter
);
22
public
:
24
TextWriter
();
26
virtual
~TextWriter
();
28
void
WriteChar
(
unsigned
char
c);
30
void
WriteString
(
const
Util::String
& str);
32
void
WriteFormatted
(
const
char
* fmtString, ...);
34
void
WriteLine
(
const
Util::String
&
line
);
36
void
WriteLines
(
const
Util::Array<Util::String>
& lines);
38
template
<
typename
T>
void
Write
(
const
T& t);
39
};
40
41
}
// namespace IO
42
//------------------------------------------------------------------------------
43
#endif
IO::StreamWriter::StreamWriter
StreamWriter()
constructor
Definition
streamwriter.cc:16
IO::TextWriter::WriteFormatted
void WriteFormatted(const char *fmtString,...)
write some formatted text
Definition
textwriter.cc:56
IO::TextWriter::__DeclareClass
__DeclareClass(TextWriter)
IO::TextWriter::WriteString
void WriteString(const Util::String &str)
write a string
Definition
textwriter.cc:47
IO::TextWriter::WriteChar
void WriteChar(unsigned char c)
write a single character
Definition
textwriter.cc:38
IO::TextWriter::~TextWriter
virtual ~TextWriter()
destructor
Definition
textwriter.cc:26
IO::TextWriter::WriteLine
void WriteLine(const Util::String &line)
write a line of text and append a new-line
Definition
textwriter.cc:70
IO::TextWriter::TextWriter
TextWriter()
constructor
Definition
textwriter.cc:18
IO::TextWriter::WriteLines
void WriteLines(const Util::Array< Util::String > &lines)
write a number of lines, separated by new-lines
Definition
textwriter.cc:80
IO::TextWriter::Write
void Write(const T &t)
generic writer method
Math::line
A line in 3d space.
Definition
line.h:22
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
streamwriter.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
code
foundation
io
textwriter.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.