1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/IO/StreamReader.h
Tom Lint 81af66d336 Code Audit
Replaced all copyright symbols with (c) to improve cross-platform
reading
Added classes to XFX::Audio namespace
Added and updated classes in XFX::Graphics namespace
Updated event function signature
Replaced const char* ToString() with const String& ToString()
2013-06-02 14:32:43 +02:00

46 lines
1.1 KiB
C++

/********************************************************
* StreamReader.h *
* *
* XFX StreamReader definition file *
* Copyright (c) XFX Team. All Rights Reserved *
********************************************************/
#ifndef _SYSTEM_IO_STREAMREADER_
#define _SYSTEM_IO_STREAMREADER_
#include "TextReader.h"
namespace System
{
namespace IO
{
class Stream;
// Implements a System::IO::TextReader that reads characters from a byte stream.
class StreamReader : public TextReader
{
protected:
void Dispose(bool disposing);
public:
static const StreamReader Null;
Stream* BaseStream();
bool EndOfStream() const;
StreamReader(Stream* stream);
StreamReader(Stream* stream, const int bufferSize);
StreamReader(const String& path);
StreamReader(const String& path, const int bufferSize);
void Close();
void DiscardBufferedData();
int Peek() const;
int Read();
int Read(char buffer[], const int index, const int count);
String ReadLine();
String ReadToEnd();
};
}
}
#endif //_SYSTEM_IO_STREAMREADER_