DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
TextReader.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Common.h
"
4
#include "
System/Object.h
"
5
#include "
System/String.h
"
6
#include "
System/IO/IDisposable.h
"
7
8
namespace
DotNetDupe
{
9
namespace
System
{
10
namespace
IO
{
17
class
TextReader
:
public
Object
,
public
IDisposable
{
18
public
:
20
virtual
~TextReader
() =
default
;
21
23
DOTNETDUPE_API
virtual
void
Close
() = 0;
24
26
DOTNETDUPE_API
virtual
void
Dispose
()
override
= 0;
27
30
DOTNETDUPE_API
virtual
int
Peek
() = 0;
31
34
DOTNETDUPE_API
virtual
int
Read
() = 0;
35
41
DOTNETDUPE_API
virtual
int
Read
(
char
* pBuffer,
int
iIndex,
int
nCount) = 0;
42
45
DOTNETDUPE_API
virtual
String
ReadLine
() = 0;
46
49
DOTNETDUPE_API
virtual
String
ReadToEnd
() = 0;
50
51
protected
:
53
TextReader
() =
default
;
54
};
55
}
56
}
57
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
IDisposable.h
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::IO::IDisposable
Provides a mechanism for releasing unmanaged resources.
Definition
IDisposable.h:13
DotNetDupe::System::IO::TextReader::~TextReader
virtual ~TextReader()=default
Virtual destructor ensuring proper polymorphic cleanup.
DotNetDupe::System::IO::TextReader::Close
virtual void Close()=0
Closes the TextReader and releases any system resources associated with the reader.
Definition
TextReader.cpp:10
DotNetDupe::System::IO::TextReader::Read
virtual int Read()=0
Reads the next character from the text reader and advances the character position by one character.
Definition
TextReader.cpp:22
DotNetDupe::System::IO::TextReader::Peek
virtual int Peek()=0
Reads the next character without changing the state of the reader or the character source.
Definition
TextReader.cpp:18
DotNetDupe::System::IO::TextReader::ReadLine
virtual String ReadLine()=0
Reads a line of characters from the text reader and returns the data as a string.
Definition
TextReader.cpp:41
DotNetDupe::System::IO::TextReader::TextReader
TextReader()=default
Initializes a new instance of the TextReader class.
DotNetDupe::System::IO::TextReader::Dispose
virtual void Dispose() override=0
Releases all resources used by the TextReader.
Definition
TextReader.cpp:14
DotNetDupe::System::IO::TextReader::ReadToEnd
virtual String ReadToEnd()=0
Reads all characters from the current position to the end of the text reader and returns them as one ...
Definition
TextReader.cpp:59
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::IO
Definition
Console.h:17
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
IO
TextReader.h
Generated by
1.18.0