Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
textreader.h
Go to the documentation of this file.
1
#pragma once
2
#ifndef IO_TEXTREADER_H
3
#define IO_TEXTREADER_H
4
//------------------------------------------------------------------------------
14
#include "
io/streamreader.h
"
15
16
//------------------------------------------------------------------------------
17
namespace
IO
18
{
19
class
TextReader
:
public
StreamReader
20
{
21
__DeclareClass
(
TextReader
);
22
public
:
24
TextReader
();
26
virtual
~TextReader
();
28
unsigned
char
ReadChar
();
30
Util::String
ReadLine
();
32
Util::String
ReadAll
();
34
Util::Array<Util::String>
ReadAllLines
();
35
};
36
37
};
38
//------------------------------------------------------------------------------
39
#endif
IO::StreamReader::StreamReader
StreamReader()
constructor
Definition
streamreader.cc:16
IO::TextReader::ReadChar
unsigned char ReadChar()
read a single character from the stream
Definition
textreader.cc:38
IO::TextReader::TextReader
TextReader()
constructor
Definition
textreader.cc:18
IO::TextReader::ReadAll
Util::String ReadAll()
read entire stream into a string object
Definition
textreader.cc:68
IO::TextReader::__DeclareClass
__DeclareClass(TextReader)
IO::TextReader::ReadAllLines
Util::Array< Util::String > ReadAllLines()
read entire stream as lines into string array
Definition
textreader.cc:88
IO::TextReader::ReadLine
Util::String ReadLine()
read until next newline
Definition
textreader.cc:49
IO::TextReader::~TextReader
virtual ~TextReader()
destructor
Definition
textreader.cc:26
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
streamreader.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
code
foundation
io
textreader.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.